Ge Washer will not shut off.

My Ge washer will not go to spin cycle with lid closed. First the Large Capacity setting when filling would not shut off and it would over flow. Now it will not go to spin mode, but also tries to cycle continuously and will not turn off. Sounds electrical?