washer agitates won't drain or spin

my washer fills then agitates but the dial won’t go past the wash cycle…it won’t drain or spin (the dial doesn’t move):confused:

sounds as if the lid switch has failed