Dishwasher won't run

Have a Whirlpool dishwasher that won’t run. Go to run dishwasher, push start, light blinks then goes out. Have to cycle power so dishwasher will run. It runs fine for a few times then does the same thing again.

Also push cancel button the pump will come on for about 2 minutes then shuts off.

Looking for what it might be that I can look at before I have to call a service person to come and look at it.

Thanks
F.