The motorcycle does not jump on year of construction 1991

Hello! I got from my neighbor a Yamaha XJ 900 J or F in the glow J 4BB year of construction 1991 the motorcycle did not jump on. After cleaning the candles renew the battery oil change petrol change she jumped on, I let it run warm. After switching on OFF she went from everything ok after restarting RUN also everything ok.Now she confessed 3 days the starting is not she spins through as if she wanted and then it is over. After checking the candles she sin d Wet the wheel has long confessed that I have to say.Otherwise everything is ok brake fluid changed and vents light also ok only when switching on the driving beam the tail light does not go out at the passing beam. Who can help me there further ? THANK YOU