IPhone turning on and off?

Okay so I have an IPhone 5S. Randomly whilst at work it turned off and when I couldn t turn it back on I decided to put it in to charge. It showed the start up screen with white background and then turned off then started again on its own again and again.

I then connected it to my computer and put it into recovery mode but about 15 minutes later it started doing the on/off thing again where it would have the starting screen but this time flash a bright red before turning off. I don't know what to do.

The phone's dead and needs to be replaced. I had the same symptoms with a 5S, and it was the logic board that died.

Hold sleep and power

New battery

  • Why is my iPhone 5 turning off and not turning back on? This has happened twice now. My iPhone 5 has turned off in the middle of the night with a full charge and off the charger, and when I try to turn it back on it takes a couple tries. Has anybody experienced this?
  • My iPhone keeps turning on and off like it turns on and off. Can someone tell me? Okay tbms it turns on and off on and off and then sometimes it shows a red screen for a few seconds then off again and dies out. It's not the battery because I got that changed thinking that it was the cause and it wasn't. So is there anything someone can help me with? The repair guy tried restoring it through iTunes he said it didn't work either it just won't come on it doesn't go pass the Apple logo before shutting off and on again and dying out
  • My iphone just turned off and is not turning on? I was just playing angry birds and my iphone just turnes off i was very scared this was for first time but this happen for more than 20 timea in month i turn on it by hitting it on ground throwing it every time i hav tried every thing every glitch(home+sleep button) every thing please tell me how can i fix it by hitting there are many chances to be break some thing in it i please
  • My iphone 8 screen froze so I tried to turn it off and now it's been stuck on a black loading screen not turning off, what do I do? I just got this iphone 8 yesterday and as I was texting someone the screen froze and nothing I did was helping so I forced it to restart and it started to shut down and restart but now it's just been stuck on the black loading screen not changing. What do I do?