How does a wind mill works?

it spins to generate power for the houses

(and for golf)