OP likely needs a new pump, the cost of which will be 2/3rds the cost of a new dishwasher.
this happened here, although I never knew what caused the pump damage.
my spiffy new dishwasher less than a year old has had 4 service calls, and the heat water, dryer has worked intermittently ever since.
whirlpool makes junk, but then again so does everyone else