One law of thermodynamics is "heat cannot be created or destroyed", I think this means we just move it around.

How does fire work according to this principle?

How does resistance heating work according to this principle?