One is the oil pressure sender, the other is the coolant temp gauge wire. They'll both plug into each other's connectors. I'd plug them in and turn your key on, if your oil pressure light comes on (maybe a bit dimmer than normal though) then I'd say you have them swapped.
When I had my intake apart I had them swapped going back together. I was scared when I saw the oil temp warning indicator on.. and when my temperature didn't seem to go up. I was able to reach back in and swap the two connectors with the intake etc installed.
Oh and nitrile gloves FTW! I cant stand to work on a car without gloves on anymore.

Oh and I think the one that's attached to the other wire is the one that goes to the oil filter housing. The one going solo goes to the block I think. You'll know if you get them wrong though!