Microwave ovens work because microwaves make polar molecules (molecules that act like tiny magnets) all face the same direction - to visualize it, imagine that the microwave oven is telling all of the molecules to face left, then right. Heat is just the movement of molecules, so when the molecules do a great amount of moving, they are hot. 