My iPhone 5 I suddenly going off by it self?

My Iphone 5 is suddenly going off by it self anytime I take it off from charger! And sometimes it restars by it self whiles I'm charging it! What do I do? What's the fault

Reset it and if that doesn't work restore it as new. If that doesn't work call up apple. Sounds like a software issue.

  • Why is my iPhone locking and trying to turn off by its self? My iPhone has been trying to turn itself off and locking the screen for ages, at first i thought that it would go away but it hasn't, it also turns itself back on if i turn it off does anyone know how to make it stop?
  • My iPhone 6 suddenly turned off and wouldn't turn back on? I plugged the phone into my macbook and it turned on in a few minutes. When i unplugged the phone from the laptop it would turn off again, i've done this about 3 times now. Any help would be appreciated.
  • My iPhone 5 suddenly turned off by itself? So I was using my iPhone 5 today and I was playing a game, than suddenly, it just switched off. I put it in the charger and the screen came on like when the iphone ran out of charge and you just put it in the charger, though I'm pretty sure it was at 50% when this happened. Is this a serious problem. Or does it happen normally? The iPhone is fairly new, only a few months old. It still has the warranty.
  • My iPhone 4S suddenly turns off? During charging, my iPhone would just suddenly turn itself off then on again. It does it constantly. Usually when its on charge. When it its off charge, the battery percentage stays the same… The only way to change the battery percentage is to restart the phone. I just had a 2 new battery installed and both are still the same issue. What's is wrong and do i need to change any componemts?