Why does my iphone not charge? - 1

I have a iphone 4 and when every I plug it in to charge all it says is accessory doesn't work with this device and now my phone is completely dead and The charger worked lastnight, does anyone knows what is wrong with my phone?!

One of its wires maybe broken inside. It may look normal from outside. But the cable needs replacement

The wires may be shot, it could be time for a new cord.