dishwasher don't cycle

the dishwasher will only stay in wash cycle and won’t go to any other. It will stay there for hours untill I push cancel and the lights on the push button control panel will keep flashing.Can you help?