Have you installed any new apps that use the Internet recently? I have had problems with connecting to WiFi and some of those times it was due to an app that was running in the background. Try using a task killer like Advanced Task Killer and use it to kill a lot of the apps running in the background, and see if that lets you connect to WiFi again.
Posted Using My Sprint HTC EVO3D Using Tapatalk -