My iPhone 4 turns off and won't turn back on?

When I plug it in, it indicates the battery is charging and I'll let it get to 100%. I unplug it and works fine for a few minutes. As long as I don't put it to sleep, it'll stay on. I click the power button quickly to put it in sleep mode and that's where the problem starts. It won't turn on at all. I try to hold the home button and the power button together. I even restored it to factory settings and the same thing keeps happening. After it shuts off on me, I plug it back to a charger and it turns back on at the same battery percentage it left off.

It has no water damage:/ so I don't know what's going on. Right now, it turned off on me again (whenever it locks itself, it also shuts down). Plugged it back in and its working.

This problem is annoying me. Is it the battery? Help?

Added (1). Gave it a reset and oddly it's working. Huh, guess I underestimated the power of a reset (though I had to do it while it was plugged in)

Take it to the cell phone shop where you got it from to see if you can getr it fixed.

Glitch

  • When i turn off my iphone 4 it won't turn back on? When i turn off my iphone 4 it won't turn back on, like it'll show that apple sign until i plug it into the charger, people tell me i should restore my phone but will it delete all my pictures and music?
  • My iphone turn off for no reason and won't turn back on and lock button is broken? I was just on it and it was 85% charge and it turn off for no reason and it still vibrating.plus my lock button is broken I need help Mom won't take me to get it fix I need help now
  • 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
  • Lock button broke on IPhone. How can I get it to turn on if it turns off? I dropped my phone one time after having it for a year and a half. Has hardly any scratches on it but the one time I drop it my lock button collapses. If my phone turns off is there a way to get it back on? I'm asking because I know someone who had this happen and I think I remember she could get it back on if she connected a charger. Is this true?