replaced the inlet manifold gasket and now the car will not start

.
i missed unplugging the blue sensor(what is it called & what does it do?) on the back of the block and the wires pulled from the plug
refitted them but not sure if i got them the right way around. will this stop the enging from starting?
thanks in advance
matt