Before beginning any work, unplug the dishwasher or turn off the power at the circuit breaker. Mixing water and electricity is dangerous.
If you have tried all these steps and the dishwasher still will not drain, the issue may be a broken drain pump or a faulty solenoid, requiring professional service. how to drain a clogged dishwasher