1999 Pontiac Grand Am

My driver side low-beam bulb goes out occasionaly for a few days and then comes back on. Sometimes it flickers. This will be the second time i’ve replaced the bulb, if i do it. Should i just replace the bulb because maybe i had a bad one or could it be something wrong with the electrical system or plug connection?

Swap it with the one on the passenger side. See if the problem changes.

Probably a bad ground connection.