Replaced Timer on Washer and now water is flooding

The timer on my washer went out and thus the machine stopped working alltogether. I just installed my timer and turned on the water and ran away for a bit and all of a sudden the washer instantly flooded the entire floor and didn’t not stop pouring water until i pulled the plug. What is the problem here. Is it a defective timer or what?