Once your water level switch is satisfied by the set water level,the machine should start agitation.
If the water stops filling and does not agitate,either the lid switch is bad or the timer is bad or the motor is bad.
If the water continues to fill and overflows either the water level switch is bad or the water valve is bad.