How is Wind Energy Generated?

It is generated by actual wind ‘farms’ these days, but wind energy has been used for years as a farmer or ranchers means of pumping water out of the ground, using windmills.