Whirlpool Duet front-loading washer won't spin
The pump is bad or you use too much soap. Run a load without soap. If a load of clean clothes makes suds in the washer, you definitely use too much soap.
The pump can't pump suds -shopyourway.com

Of course it could be a senor malfunctioning somewhere...