Valeriy Lushchikov/Getty Images
Charger cables go through a lot. They're rolled, unrolled, bent, frayed, shoved into bags and pockets. It's easy for them to become worn over time and, eventually, break entirely.
Inspect your charging cable and look for any fraying or damage to the wire. Also, look at both ends, ensuring that nothing is stuck inside, and nothing is bent out of shape. If it is, try a different cable if you have one.