Hi and
to the forum.
Unfortunately, you cannot make a brushless motor run by simply connecting any two of the phase wires
(the three thick wires) to a battery, as the very low resistance of the coil windings will quickly draw a very high current from the battery if they are energised directly from the battery for anything more than a split second.
Unless the motor has been excessively overheated, it is very unlikely that the phase wires
(or the motor's stator windings) will be damaged, and it is far more likely to be a problem with either the controller itself or the Hall sensors.
You can perform a simple test on the phase wires and stator windings by touching each pair of phase wires together and then trying to spin the wheel.
If the phase wires are all OK, the wheel should refuse to spin as the shorted phase wires will cause an electromagnetic dynamic braking effect.
The level of resistance should be identical with all three combinations of pairs touched together
(Yellow/Blue, Blue/Green and Green/Yellow).
If it is a geared motor with an internal freewheel device
(called a unidirectional clutch) you will have to spin the wheel in the reverse direction to feel the strong resistance when each pair of phase wires are touched together.
I am puzzled by the
"5 thin wires of the same colours plus red and black", as all of the GM hubmotors with external controllers only have five thin wires in total
(Red, Black, Yellow, Green and Blue).
You may need to do some further research on your motor in order to determine what the
"5 thin wires of the same colours" are for.
Alan