Chosen Solution

Washer starts to fill then switches to drain and starts draining does not fill stops and starts draining?????

You might have a defective lid switch . Or switch mounting is loose from age . You might try pushing down on lid when it is filling .