I don't have the same truck as you by any means, BUT that first one I was thinking either 4x4 switch or torque management plug which would hook to body harness. The second plug looks like a fuel pump prime test port, I have one on my firebird that looks just like that except mine is grey.

FREE BUMP!!!