Safe checks you can try unplugged
First, unplug the machine from the mains. Check that the drain hose behind the machine is not kinked or raised above the manufacturer's recommended height. On front-load washers, gently open the lower front coin-trap filter (with a shallow tray underneath for residual water) to clear coins, hairpins or lint.
When professional assessment is needed
If the trap is clean yet water stays in the drum, or the drum refuses to agitate/spin, the cause may be a failed drain pump motor, door lock switch, drive belt, hall sensor, or control PCB—all of which should be tested by a qualified technician.