sometimes to find a ground it will back feed thought the other light, so one will work and one will not or sometimes the second one will be really dim
so test, run a wire from ground on the truck to ground on the light that's not working you might need to sand the metal to get a good connection