The hub motor wires are cut from near the axle and looks like I can't repair it without completely replacing it. The motor is similar to this one on Ali Express. I failed to open the motor because the screws are so tight and rusted. I am thinking of cutting some part of the rod and join the wires. This seems an easier but not a good solution. Any advices?
Update:
I was able to get my motor working by cutting the cable from near the sensor board, pulling the cable inside the motor through the shaft and rejoining/soldering from where it was originally cut. This shortened my cable few inches and it was barely reachable to the controller. See the picture below. I wanted to know if the cable can be completely replaced with no need for these joins but it's not easy as the cable was the part of the motor coil itself.