dishwasher cycle

When my dishwasher starts to run a wash, it will do it’s normal, initial rinse, but when the wash cycle kicks in it has problems. It washes about 5 seconds & quits. It will wait about a minute & try again for 5 seconds & quits. It does this 3 or 4 times & is done. It doesn’t drain itself, but it will when I hit "cancel". I’ve checked the arms & nothing is locked up. I’ve removed the racks to make sure nothing was in the way, but same problem.

Help. Thanks

it fills with water but does not run the wash cycles. It will also drain the water if you hit the start/cancel button.