Low beam headlights won't work some of the time on 2008 Pontiac Grand Prix

Bright headlights always work. This started after had to replace battery. Have replaced body control module. Have checked modules under hood. Also, when unlocking car door locks my headlights don't flash since then just park lights and my night light that shows by gear shift what gear you are in isn't working

Asked by for the 2008 Pontiac Grand Prix
did you have the bcm flashed?? it is required when replacing. i would start there.

yes, I did. Chevrolet dealership did all the work