The Black, Blue and Gray TPS sensor is a throttle position sensor
+5v on the Gray
Blue - signal to the ECM
Black Ground.
The CTS sensor for the ECM is a yellow/Black wire. Most likely your CTS is only a two wire sensor and does not support a gauge. You can swap to a three wire CTS from a 3800 and use the third pin to run your gauge.
The black and yellow wires from the ECM connect to the top two pins of this CTS. The green gauge wire connects to the bottom pin (and grounds through the engine) The two functions of this sensor are totally independent but are housed in a single unit.
Two wire CTS sensor connector
[This message has been edited by phonedawgz (edited 01-06-2012).]