The radiation from microwaves causes the molecules in water to move rapidly which causes heat energy. Water generally evaporates when it gets too hot and it doesn't take long to heat up water in a microwave. Given most foods contain some form of water the heat produced causes the food to also heat up. At least thats what they taught me in school.