replaced drivers side headlight ,headlight comes on then goes out on 2003 Lexus LS430

is there some other part that could be bad

Asked by for the 2003 Lexus LS430
most likely to be the ballast very expensive from lexus but after market ones quite cheap and work just as well (lexus call it a light control computer hence the price)it sits under the h/light behind a plastic cover is a square silver box