You can plug 3-pin connectors on a 4-pin header like this:
Note that your 4-pin fan is a PWM fan that requires a 4-pin PWM header for it to function as intended. The 4th pin provides the PWM signal to your fan which allows it to change speed while using full +12V provided by the PWM header.
On the other hand, your 3-pin pump (as well as 3-pin fans) functions as a DC pump/fan. Plugging this on a 3-pin DC header will allow such pump/fan to change speed by variable voltage supplied by the DC header.
If you plug a 3-pin pump/fan on a 4-pin PWM header, such pump/fan will run in full speed 24/7 due to the constant +12V the PWM header provides.
Some motherboards have...