When a current passes through a wire, the current heats up the wire. If the resistance of a material is very high, this can heat it so that it glows. That is how a filament bulb works.

16