Pretty much anything could be wrong... I'd go to
http://www.tldp.org read the networking howto's and other relevant documents. Also check out your distributions users guide to see if it has a chapter devoted to networking: most of them do.
If you already have done all this, please be more precise so that people can help you better. As I said, there are dozens of different reasons why Firefox refuses to connect to the Internet.