Hi, my name is Peter.
You have a defective lid switch. It is mounted on the right side of the top, it is held on by 2 phillips screws. It usually comes apart or the lever breaks.
You may send additional questions directly to me.
Please push the green accept button.
You can verify if it is defective by testing with an ohm meter. If the lid switch is bad it will not let the washer drain or spin. Does the timer advance to the off position or does it stop at the rinse cycle?