We've had this discussion here on lemmy a few days ago: practically all electricity generation is by making turbines spin.
Hydropower means river makes turbine spin. Wind power means wind makes turbine spin. Coal/gas power means combustion makes turbine spin. Nuclear means hot steam makes turbine spin.
However, that doesn't mean that all electricity sources are spinny things.
- solar cells have no mechanically moving parts
- batteries utilize chemical energy directly