I have had this exact same problem, and it means that the wall plug part of the charger is not working properly. That needs to be replaced. The cable is not the problem.
open