The fan that blows on the heatsink should be connected directly to power. The fan that blows just below the nozzle to cool the filament should connect to the mainboard and it gets configured in marlin and also in your slicer