i have an iphone 4 that was given to me to fix, it constantly restarts as soon as it gets to the apple logo, the phone has not gotten wet and i have tried a couple different batteries in it. the guy that owns the phone said he was trying to send a text message on it and it the battery was about to die so he plugged it in to charge as he was sending it and it came up to the recovery connect to itunes screen now just loops back to the apple screen.

i have been doing some reading and mostly everything says water damage/hardware issue which don't think it is and others says that restoring the phone can also fix it, it is still detected in itunes but when you try to restore it all i can seem to get are random errors, i tried using ireb but still will not restore