The wind-mill is taking kinetic energy out of the moving air that spins it, and uses that energy to do things. It may pump water up out of the ground, it may turn a big stone to grind wheat, or it may turn an electric generator to turn the energy it collects into electrical energy.