Fans connected to motherboard headers get power from the standard ATX 24 pin connector, which powers everything else on the board. In some cases individual fans can be connected directly to the PSU through MOLEX connectors though they would then lose the ability to moderate speed (they'd run at full all the time)