Pump Drain continuously running

Dishwasher was running fine until the pump drain went bad bought a new one installed Sunday and now the pump drain will not shut off until i open the door to dishwasher or unplug it. the old pump would complete the cycle and shut off just did not pump the water out. I do not understand what changed?