Mine did this just last month, I took it to the AT&T store. It connected to their wifi immediately. So I went home knowing that the WiFi radio in the phone still works. I unplugged the power from my router for about 5 minutes. Plugged it back in waited for the routers green light to come back on, then my phone connected to it just fine. I use an apple router.
Sent from my SAMSUNG-SGH-I747 using Android Central Forums