4 pin molex...
red = 5v
black = ground
yellow = 12v

3pin fan connector...
red = 12v
black = ground
yellow = rpm pulse

A 4 pin molex has no rpm feed. Fans that use a 4 pin molex will have a single red and black wire going from fan to molex. Red = 12v, black = ground.