In 90% of cases, a dirty filter or a clogged air gap is the culprit. Clean those first, and you’ll likely be back to clean dishes within 15 minutes.
If electricity is off and you need water out now : how to drain a dishwasher