Washer keeps filling but everything else works

It seems that the washer over fills when doing anysize load, everything works but it just won’t stop