Why a microwave runs but does not heat
A microwave's light, fan and turntable run on ordinary mains power. The heating comes from a separate high-voltage circuit and a part called the magnetron. Settings such as demo mode or the kitchen timer leave the magnetron off on purpose. A door that does not fully close also stops it, because safety switches in the latch only allow heating when the door is shut. If the settings and door are fine and it still will not heat, the usual causes are a failed magnetron, high-voltage diode, capacitor, fuse or door switch, all of which sit behind the cover.
Sparks, buzzing and burning smells
Sparks inside the oven are often caused by metal, foil, dishes with metallic trim or food splatter on the inside walls. Stop the microwave, remove the cause and clean the cavity. If you smell burning, see sparks with nothing metal inside, or hear loud buzzing or humming without heating, unplug it and call for service.
Repair or replace?
Ask the technician for a quote before agreeing to a repair. For an older countertop microwave, the cost of replacing a major part can be close to the price of a new oven. Built-in and over-the-range microwaves are usually worth a service call.