What kind of Mac do you have?
What version of the Mac operating system is it running?
What version of Safari?
When you say it "quit working" could you be a little more specific? Are you able to launch Safari? What happens when you open a new web page?
How do you connect to the Internet?
Are other Internet services such as email working?
Best of luck.