Take the back off and check all the electrical connections. Unplug and replug. Take the top off and do the same. Should be 2 or 3 screws on the back of the top panel to remove. Also check the door latch connections. The door latch failure is a common problem with these washers. To test it, put it in the spin cycle and let it go for a couple minutes. Then unplug the washer and see if the door opens right away. If it does then the door latch has failed. If it stays locked for up to a minute than the problem is elsewhere.
Source: Kenmore 417.44082400 Front Loader will not go into spin cycle