In such situation it could be two things: the transmission is stuck or the pump is stuck.
Install the motor back in place but do not install the pump. Start the washer and see how it agitates. Bypass the lid switch and check the spin.
If there is nothing wrong, install the pump back and run the same tests.
Post your findings, please.