Parking lights snafu

I grounded the socket on parking light and the bulb came on. I don't know how the socket normally grounds but by setting a wire on the metal socket and grounding it, the light comes on.