Sounds like one of the valves is leaking. You did say washing machine tub fills with water? Determine if hot or cold by shutting off each supply in turn. With water off remove hoses from back of machine and check screens (most washers have them) for debree or scale build up(will cause valve to stick open). Use care some makes are plastic parts. If machine over three years old the rubber part of valve maybe bad and require replacing.