Iphone only charges when its off/dead?

So i have the iphone5c and starting yesterday when i plug it in to charge the phone it won't unless i turn it off and its dead but once it gets to 4% it will stop charging.
it might be the cord since my cat chewed it but it still charges when off and it worked since before yesterday.
Also I plugged it into the computer and it just said not enough power or whatever
and i googled this and everyone said to reboot/reset it but i can't since theirs not enough charge to.

Try replacing your charger… Thats could be the issue
Also, if the charger is working fine with other iphones. You could try cleaning the charging port on your iphone…
You could also keep it for charging for a few hours (even if it doesn't show as charging) and then if the phone starts try restoring your device