Headlight problem - electrical?

07 Pontiac G6, 65k. I had an intermittent headlight/dayrunning light but the highbeam worked. Replaced headlight bulb, still had intermittent problem. Replaced the headlamp assembly - still have problem. The new headlamp assembly worked a little on day 1, but has not worked since. Highbeam and direction signal are functional. Looking for suggestions.

Can you be more specific? We are guessing that all lights work properly except for one low-beam bulb. Is this correct?

Yes. Though after calling a dealer I trust, they have a G6 customer with same problem and it turned out to be the socket. Will have them replace it. Thanks for the reply.