My iphone won't find iphone signal?

I've had my iPhone jail broken for a year + now. A month ago battery died and I put it on charger on the night. When I woke up to connect to Wi-Fi. It won't even find the signal. I went next to the Wi-Fi and it worked. If I get out of range it won't connect i don't know why. My iPod touch works perfectly. I don't know y my iPhone does that. I even restored it and nothing changed still help me