Iphone 4S is connected to Wi-Fi but won't load pages?

It only started today, i woke up and i had a bunch of problems. My power button is completely jammed and now this. Worst thing is, i have no warranty because it was a present and the gifters didn't give me any proof of purchase or anything >.< It says its connected. I tried resetting the network settings like the apple support suggested but nothing changed. I can't load a single page on safari or google chrome, but i can if i'm just using my 3G. Any suggestions?

Take it to the Apple store, they can fix it for you.