How do I control fan speed on 12V DC fan?

Each fan has 3 wires(Red, Black, and the Yellow reserved for control) btw