Based on the information you provided, it seems like your washing machine is experiencing an issue with the wash cycle. There are several potential causes for this problem, including:
Faulty or clogged water inlet valve: The water inlet valve is responsible for allowing water to enter the washing machine. If it is defective or clogged, it may not be able to properly regulate the water flow, causing the machine to fill up and immediately drain without entering the wash cycle.
Timer or control board malfunction: The timer or control board in your washing machine controls the various cycles and operations. If it malfunctions, it may not be sending the correct signals to initiate the wash cycle, resulting in the machine filling and draining without proceeding further.
Sensor or pressure switch issues: Washing machines have sensors or pressure switches that detect the water level and trigger the wash cycle once it reaches the desired level. If these components are faulty, they may not accurately sense the water level and, as a result, fail to initiate the wash cycle.
Clogged or damaged drain pump: A clogged or damaged drain pump can prevent the machine from proceeding with the wash cycle. If the pump is unable to drain the water properly, the machine may automatically drain the water to prevent overflow.
Other mechanical or electrical problems: There could be other mechanical or electrical issues within the washing machine that are preventing it from progressing to the wash cycle, such as a faulty motor, belt, or wiring.
To determine the exact cause of the problem and to fix it, it is recommended to contact a professional appliance repair technician. They will have the necessary expertise and tools to diagnose the issue accurately and provide the appropriate repairs or replacements.