hums wont' wash

The dishwasher fills with water and "tries" to begin the wash cycle, but all I hear is switch(es) engaging with a hum for about 2-3 seconds. This switching and humming repeats a few times, then the lights/buttons turn off on the front. The bottom is full of water when I open the door. I have to put the cancel button and then it will drain out.