This happened to me quite a lot when I first updated to iOS7 on my 4S, best thing to do is go to Settings > General > Reset > Reset network settings!
Restart your phone and try again, If not unplug your router and reset the settings on the phone again and try to connect again!