After plugging it into the socket, if it still doesn't light, plug it in the opposite way or flip the bulb horizontally so that it matches the positive and negative poles.
If the bulb's socket is slightly loose, try pulling the pin on the base slightly outward and sideways.