yourmother oh. That's strange.
It could be a hardware issue, so it doesn't necessarily have to be the cable.
I suppose one quick way to test if it's a software issue would be to power off the phone completely, plug in the charger, wait for the percentage to show up and then for the screen to go black. Wait for a while and see if you can observe the phone lighting up then too. If so, I'd expect it's a hardware, not a software, issue.