The most common cause for a Whirlpool washer to not spin is a broken lid switch. Other common issues are a failed motor coupling, bad clutch, spin belt, transmission, and timer.
Your washer could be jammed as well or it might just need to be reset. If you experience a storm or high energy output, you may want to try a reset.