A seal gave out and leaked water inside all the working parts in my washer so I basically replaced everything.

When I got it back together the motor spun and was a little loud but then stopped and only hummed and dimmed the lights on the circuit I had it plugged into while testing. I then unhooked it from the transmission and tried and all it did was hum. Naturally I bought a new motor... same deal. Just a hum and it's getting hot. Any help?