The cable takes a lot of stress over time, and that's a likely culprit when your charger stops working. It's possible for a charging cable's copper wiring to be damaged, causing the charger to stop working or work intermittently. Sometimes, however, the charger is the problem, not the cable. To fix a broken charger, test the wall socket and look for damage to the device power port.