If your washer isn’t spinning, check to be sure the lid or door is securely closed. For your safety, the washer will not spin if it’s open.
On a Front Load washer, you can also check to see whether the dispenser drawer is open—it should be completely closed.
Finally, if your load is out of balance, this might also prevent the washer from spinning. Rearrange it to allow for proper spinning, possibly adding one or two similar items to help balance a small load.