Dishwasher Won't Shut Off, Won't Fill

Our dishwasher won’t shut off when the door is opened, and it is not filling. The motor is running and it looks as if it is draining constantly.
Any ideas?