It could be that the charger or battery is broken, or that your iPhone has been using it for too long