Tell us about yourself!
Same happened to me a few times. The problem is the cable which is often rubbish and it over time breaks somewhere. The cable should never be soldered inside the charger There should be a separate plug to plug in the cable that goes to your computer, as the charger is in good condition. The cable is the problem.