When you connect to a remote service (website, email, FTP, etc.) there are many different elements involved. If any of them fails, you won't be able to connect.
Here I've created a troubleshooting decision tree to help you find out why can't you browse a website so when you contact a helpdesk they will be able to solve your problem faster.
I hope this helps!