My iphone only charges after I turn it off and back on?

When I plug my iphone in it won't charge so if I turn it off and plug it in the turn it back on it starts to charge and my battery is going dead really fast and help on how to fix

Maybe you have a bad charger or maybe where you plug in your charger in your iphone doesn't sense the charger going into it you should take it to a person that knows more about devices problems.

  • Why did my iphone 5 turn off and not turn on after a ios 6 update? I have tried everything it won't show its charging i tried holding down the power and home button but that won't work, the screen is just black and won't do anything. I even tried plugging it into my laptop and that won't work either How do i put it in DFU? I hook it up to my comp and nothing happens at all. Nothing pops up on my comp and my phone won't turn on at all
  • My new iphone 5 only charges when turned off? I have a new iphone 5 that I recently bought and is updated to ios 8 but the problem is it only charges when the phone is turned off, I have tried restarting my phone but nothing changes, and I have also cleaned out the lint from the phone but it made no difference
  • 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 4s only charges when off? My iphone 4s only charges when its off. I held down the lock and home button to reset it but nothing works at all. I've done it for like 5 five tines in a row. Does anyone wanna know how to fix this?