My iphone 5 cable has stopped charging, how do I know which one to get to replace it?

Lightning to USB Cable (1 m)

Lightning to USB Cable (1 m)

Product No Longer Available

No Answers have been submitted