If it does however, you can use a pair of needle nose pliers.
Grab one of the exposed edges of the bulb's base, turn it counter clockwise to get the base to collapse on itself a little bit, which will make it smaller in overall diameter and it'll break any of the corrosion that's keeping the base stuck in the socket.
Once the bulb is out, inspect the contacts for corrosion.
If the contacts are corroded, you can use a small wire brush to clean them, then as suggested, use bulb grease, and re-install a new bulb.
If a new socket is needed, you can buy replacements at chain auto parts stores, and simply splice it in.