To check this, fill the tub with water. Make sure that the wash selector is not set to drain. If the water keeps filling and draining simultaneously, it is an indication that the drain valve is faulty and you will have to replace it.