Wind is really an indirect result of solar energy as well -- solar energy creating different pressures in the atmosphere, which produce wind.
You are incorrect in stating that most things use the sun for energy. In fact, everything uses solar energy in one way or another.