Is the drain hose installed correctly?:
Is the drainpipe (standpipe) less than the minimum height of 39" (99 cm)?
Make sure that the top of the drain is at least 39" (99 cm) high (as measured from the floor.) If the drain is below 39" (99 cm), the water will start to flow out of the machine due to gravity. The flow of water can create suction (siphon) and the water will continue to drain out of the washer (will fill and drain, and never finish filling).