If your bike works but the headlight doesn´t go on then it´s just burnt out...buy another one. If the headlight as well as the bike don´t work, then check all wiring in the headlight itself, you may just have a loose connection. Also check your fuses.