Problem with Apple lightning to usb cable.

Options
Found an Iphone 5 with a broken screen and icloud locked (I ordered one to change it).
Bought an original Apple lightning to USB cable and I cannot charge it.
Also my computer doesn't recognize this phone.
Is something wrong with the charger or the phone??