They have an Anode pin which goes to +ve and Cathode pin which goes to -ve, make sure they are the correct way round otherwise they will not light up. One of the pins is thicker near where it enters the led body, I think this is the cathode, but check to be sure.