If the washer will agitate both directions and the problem is only it will not do a high speed spin the motor is usually okay.
The two wires you mention most likely go to the tachometer and this could prevent a high speed spin.
The image below may help you with this problem if you have access to a volt/ohm meter and are comfortable using it. The speed control has two connectors on it. There is a 10 pin connector and a 9 pin connector. On the 10 pin connector on pins 3 and 4 is the wires to the tachometer. You can ohm this out and if the circuit is open then the tachometer on the motor is bad.
The normal cause of no spin is the door lock, make sure the door is locked, or the timer. Sometimes the timer would stall out in the middle of the cycle and never reach the spin part of the cycle.
The most common cause of this problem when the washer will agitate both directions but won't spin is the door lock assembly.
The other possible cause of the no spin problem is a bad spin speed switch. If the spin speed switch is bad the washer will not know if it is suppose to spin fast or slow and as a compromise it wonÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢t spin at all.
I hope this information helps to resolve this problem but check the wires to the tachometer and submit another question with any additional details for further assistance.