If you have restored 5 times it could be hardware. Take it to the genius bar and have them take a look at it. Hopefully your still within your 1 year warranty as well in case it is hardware
nope im not in warranty anymore and would they still look at the phone if it is jailbroken and im with tmobile?
Nope. Once they see it's jailbroken they wont touch it. They did that to me. He told me to restore and bring it back and then they can look at it. When they plug your iPhone into their system for a diagnostics check, it comes up that your software is jailbroken and according to Apple it is "illegal" so they aren't allowed to help you.
question, when you restore it are you also restoring your backup once the phone is done? if so have you tried running the camera before restoring the backup