Xr650rhonda

It sounds like the ground is not connected. let's see, my o5 running light hot lead is blue and the ground is black. The hot lead from the pressure switch for brake is yellow(well, mines yellow).
I would check for continuity with your meter at the ground and at the engine to see if you have a good ground.