A coffee machine heats water through a process called brewing. When you pour cold water into the machine's reservoir, it is drawn into a heating element. This heating element, usually made of metal, uses electricity to generate heat. As the water passes through the heating element, it gets heated to the desired temperature for brewing coffee.