It requires special pulse timing to control the 4 wire fan speed.
Search the web for Arduino 4 wire fan control for more info.
This forum has threads for controlling the regular 2 wire and 3 wire fans speed which I and others have done before successfully.