As wind blows it generates kinetic energy, which is energy from movement. This turns the blades on a turbine, which then causes a shaft (drive shaft) within the system to rotate (view diagram below).
British company Alpha 311 has created small wind turbines capable of generating electricity from the energy created by passing cars. Here, an older version of the design is shown installed on the roof ...