An electric fan does work on the air, increasing its kinetic energy. Due to air viscosity, this kinetic energy is converted into internal energy (heat). The motor also generates heat. In a closed room, the overall effect is a slight increase in the air temperature.