Since it stopped when on the sandbar, did you inspect the pump to be sure you did not suck somehting up. The pump could be the reason the engine cannot move.
How much water was in the hull? You said the plug was out. Did the electrical box get covered in water? Was it beeping when you first...