Disable the wireless feature on your phone and then re-enable it. It sounds like either a DHCP or DNS related issue. Re-enabling the feature may help resolve the problem. A restart of the phone may also help.
Also, make sure that you have your router configured to provide DNS info to attached devices and double check that you entered the wireless security information properly.