GE Washer Will Only Fill with Water..then stops!

My GE top-load washer worked great last night and then when I tried to use it this morning it filled with water and has all of a sudden froze up and won’t do anything. I have tried different cycles but nothing. It isn’t making any noises, it just sits idle. Any suggestions?

Often this is the lid switch