If there is lint in the charge port, the cable can't seat properly and this can prevent it from charging at all. VERY CAREFULLY use a pin or needle to check that the phone's charge port is clean.
open