microwave works only after unplugging and replugging

Whirlpool over the stove model works only if I re plug power cord. Will work only once ie: if I hit drink …it will warm for however many seconds…then when I open the door it won’t go again until I pull the powercord and re plug it.

Anyone know what the problem might be?

Thanks