Current, Resistance, Voltage and Power are related. Voltage times Current equals power, Voltage divided by Current equals Resistance.
In the same manner Power equals (Current)^2 times Resistance, Power also equals (Voltage)^2 divided by Resistance.
The Resistance in the wire is responsible for Electrical energy to be converted into heat. The higher the resistance, the more energy is being converted into heat.