Usually there are two windings for washers, One goes forward and one reverse, either one is bad OR:
There is also a transmission in washers that when washing; they agitate the load
when spinning; they, well spin! (ha)
If it wont wash then there is either an internal component in the tranny bad or a solonoid that has gone out.
Take the cover off and check to see if the belt is ok as well.
Let us know :-)