Chosen Solution

PLSS.. HELP ME .. I have my iphone 5 sometimes when i open it, it keeps restarting but sometimes not ,when it is open after a few minutes it reboot itself and open again and after minutes it restarts again , over and over again…

Either battery is faulty or the small caps right above the battery connector got pry damaged (Note that this only happens when the battery is unplugged).