Replaced drain pump, but still won't drain

The washer was not draining. Received ND message. We replaced the drain pump (which was faulty) but it still does not drain. The machine goes through the wash cycle, but then I get a No Drain message when it is in the rinse cycle. What controls the drain pump, or what should I check out next?