Whirlpool dishwasher won't drain

Dishwasher works fine but will not drain. I’ve checked for blockage, and removed the drain hose. When I remove the hose it dumps the water but for some reason it will not pump out. Any help or advise is greatly appreciated. Thanks