My iphone five keeps switching itself on and off?

I bought a new iphone5 and I put all my programs in it, the next day it started playing up, it kept switching itself off, and then back on again when I was using it, I went to settings to diagnostics&usage and it said "ResentCounter"! Any one know how I can fix this problem as it's very annoying when I'm using it, and it just switches off and back on!
I would really appriciate if you could tell me what I can do to it

First, just make sure the phone is charged up. Like 100%
Keep it on the charger and shut the device down yourself.
Then turn it on.

The problem should stop.

If not, try doing a reset by connecting your iPhone to iTunes.

  • What to do if your iPhone 4S keeps going off by itself? My iphone keeps going off by itself and turning back on by itself. Like if I get on one of my apps, my screen turns black and goes off by itself and turns back on. I tried resetting my iPhone 2 times but it still does this. Can someone please help me with this because its so annoying.
  • Siri keeps turning itself off in settings? I installed Siri on my jailbroken iPhone 4 with siridr but whenever I turn on Siri in settings and I go back to it it's off. I'm losing my mind! I can still boot up Siri but it just keeps loading after I say something until I turn it off. Any help is greatly appreciated
  • 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 keeps turning itself off and won't turn back on again? I have an iphone 4s, i've had it for a year now.recently it will randomly turn itself off even when it has charge in it, it will go off and not turn on for hours. I keep trying to turn it on and eventually it will come up with bit saying it needs to be charged basically.sometimes the screen will go blue or come up with random colours and turn off. I have no insurance for it either. I ordered it online, it's a contract with 3 mobile.i'm not sure if warranty as run out.