You might have a clogged drain hose.
A new drain hose costs and takes 20 minutes to install. Sometimes replacing is safer than cleaning. how to clean a dishwasher drain hose