12/2 contains a black, white and bare conductor. Also referred to as 12/2 with ground. The bare wire goes to the box as does a ground wire from the receptacle also.
12/3 contains a black, white, red and bare conductor. This is usually used for 3 way switches (typ stairway, lights switched from two locations)