If your dimmer is part of the headlight switch then the switch needs to be replaced. If the dimmer is separate the the dimmer can be checked for voltage in and voltage out to see if it's good.