Show us a pic of the wire break and position.
But in general have to agree with Woosh,if there is enough cable length to play with.
Replacing the motor cable isn't an easy job an not to take on likely, getting the hub open is your first issue. It will be easy or involve some cursing, once open...