My iphone won't connect to Wi-Fi unless i'm rite next to it?

I droped my iphone 3gs and broke the screen and power button and now it won't connect to Wi-Fi unless I'm rite next to the box

My iphone 4 does the exact same thing, i was reading about how its a problem with the inside of your phone. Its usually cheaper to get over it or buy a new one then fix it because most places won't fix an iphone problem if it involves the interior.

Prepare to buy used iphone 4s soon. Not worth repair cost.