IPhone doesn't want to charge?

My iPhone doesn't want to charge or connect to any computer. I tried various usb cables, but that doesn't seem to work. The only way it charges is when the phone is turned off. Can someone help me?!

Added (1). I tried restoring it, but that didn't work because the computer don't recognize the phone

I think something's wrong with the software. Just try to restore your iphone. It usually fixes everything

It may be faulty show to someone like how are good at solving problem.

  • Why doesn't my iPhone 6s doesn't have night shift? When I go into settings and then into brightness there's no option for it! My phone is completely updated The title was worded badly on my part but you know what I mean
  • My Iphone doesn't want to charge or turn on? My Iphone 6 Plus was about to charge, so I started to charge it and the electricity sign popped up. However, after a while, my phone died and it can't be charged. I plugged it into my computer and it does not pop up on my itunes. Someone please help
  • My iphone 5s will not turn on. Hard reset doesn't work and itunes doesn't recognise it My phone hasn't turned on in 5 days. Doesn't respond to the charger or being plugged into the computer. I've tried the hard reset a thousand times and nothing happens. ITunes won't recognize my phone so I can't do a factory reset. Can anyone tell me another way of resetting my phone?
  • Iphone charger doesn't charge every iphone? My friend has a 30 pin iPhone cord for her iPhone 4.It can be used to charge her iPhone fine but when I connect my iphone4s to hers it doesn't charge anymore, it used to. Why does it only work on hers? How is that even possible?