The resistors we are using today are incandesant light bulbs.  Let's use the diagram below to help understand how it works, the idea is to heat up a metal wire hot enough that it is giving off light but not too hot that it breaks/melts, that is the fillament wire.(if you are curious the fillament is mostly made of tungsten)  It is heated by the before mentioned way of just passing electricity through it.  That means the bulb needs an in and an out electrical connection so we can send electricity through the fillament, which are shown as the red and blue wires.

So to recap the fillament wire has electrical which means it will when electricity passes through it.