So, when an electrical charge passes through a resistor, some of that electrical energy is transferred into heat, increasing the temperature. This extra energy causes the particles in the resistor to vibrate more. With these particles moving more, it is more difficult to for the electrons to move through the resistor. This means the current can't flow as easily and the resistance increases.