Space heaters work by using electricity or fuel to generate heat, which is then distributed into the surrounding area.