You may have a wire shorted on the return signal from the IAT, so when it's not plugged in, there's no short. Check the wires for the MAF, TPS, and IAC valve. Also, try placing a 10k resistor across the pins for the plug to the IAT and see if you get the same result.