if the motor functions normally when mounted on the t/box and changes gear with you switching the current directly i'd suspect the ECU is f*cked.
The only other option would be that the sensors circuit in the motor itself (the other three wires on the connector) are gone bad. There were some guidelines on checking those, but i can't seem to find them right now.
EDIT: yes, if the motor was seized and you tried to operate it for a longer time (10-30min), this usually damages the ECU. Mine melted down completely.