whats wrong with my headlight

Try cleaning the plug on back of light,apply a little Dielectric grease on connection.