A magnetron is a high-powered vacuum tube that generates microwaves. It is the key component used in a microwave oven to produce electromagnetic waves at a frequency of about 45 GHz. These microwaves cause water molecules in food to vibrate, generating heat and thereby cooking or heating the food.
Magnetrons are not used in telephone receivers, laser printers, or scanners. Those devices use entirely different technologies for their operations.