washer won't fill up all the way

For some reason my washer will only fill up about a third of the way then stops. I think the water level switch may be stuck or broken but I don’t know how to check to see. Everything else works fine. any ideal how to fix the problem?