washer keeps filling and draining

Everything wad working fine. I pulled the washer out to clean the inlet screens and broke the drain pipe coming off of the p trap. Replaced it and now water keeps filling, doesn’t overflow, just goes out the drain pipe. When I manipulate the dial to drain, it over flows out of the tube where the drain hose goes.
Key: worked fine before, now its like a siphon.

Not sure how you have it hooked up but the hose or drain stand pipe must be higher than the max water level in the unit.

Also the drain usually just goes down the stand pipe with a gap around it to help prevent siphoning.
It should not go all the way down into the P.