Firstly, does it work if you connect it by ethernet cable?
Have you added any new devices recently?
Is your wireless network adaptor driver up to date? Go into Device Manager to check this.
When you have done this you might have a look at this article to see if the TCP/IP needs resetting.