If you are checking the ground wire for power while it is disconnected and the others connected what you’re detecting is current that has flowed through the windings and out on the motor ground wire.