Fact 1: electrical current running through a wire causes that wire to heat up. 
Fact 2: Because of electrical resistance, the passage of electric current through wire produces heat.
resistance in a circuit causes heat.