So oddly I just had this happen (look for the link headlight out, good bulb) and it ended up that the relay in the junction box blew. This is a BIG sign that either your R/R or Stator is going. Mine ended up being the R/R, but you will want to test both. look in that link and the versus on how to check them.
As for getting the Headlight to work for now:
On the cables that go into the junction box, there is a blue wire, next to the blue wire there is an open plug (in the same connection. you take out the wire and the metal connection attached to it and just move it over) the light will work then, but it will come on when you turn the key to on. Check your battery as well, it might be low now.