It could be an issue with the Winsock protocol. Per Microsoft, this protocol is used by Windows to communicate with other computers and to access resources on the Internet, such as e-mail and Web sites. If there is a problem with Winsock, Windows will no longer be able to access the Internet. This previous thread has some suggestions on what to try.
Resetting Winsock Protocol