dw motor won,t start

i just replace the motor & pump i turn it on the water fill up
then wait for the motor to on then heard a click waited to see it start
nothing then i push cancel/ drain then motor started ran for 10 second
then stop
i replace because the other one was leaking & the motor burnt out it started to smoke