Hi,
What is the exact and complete error message you get?
I would suggest you to try the steps from the following link:
Wired and wireless network connection problems in Windows
Refer: Why can't I connect to the Internet?
http://windows.microsoft.com/en-US/windows7/Why-can-t-I-connect-to-the-Internet