Sounds like a limited connection. The wifi radio in the phone is connecting to the wifi radio in the router, but they're not talking at the software level.
Check the router and ifit's using TKIP (or TKIP+AES) encryption in wifi, change it to AES. (Then forget the connection in the phone and connect again. If that works, you'll have to reconnect any computers using that router.)