Unequal heating of the landmass and water bodies by solar radiation generates air movement and causes winds to blow. This kinetic energy of the wind can be used to do work. To generate electricity, the rotatory motion of the windmill
is used to turn the turbine of the electric generator.
So, the correct order will be:-
Wind blows -> Blades rotate -> Turbine rotate -> Electricity is generated