Here are 5 reasons possibly why:
1.) Faulty lightning or micro USB port
2.) The lightning or USB port could be dirty
3.) Damaged charging port or cable
4.) Water Damage
5.) Software problems
8.8m questions
11.4m answers