Dishwasher does not run

Dishwasher would not start. Replaced circuit board with no change. Bottom row of lights will light up if selected, top row does not light up. If I select, "Heated Dry, Normal" three times then all lights work and dishwasher runs a short cycle, less than 5 minutes, then shuts down and all lights go away. Only way to get washer to run is the test selection mentioned above. Any ideas?