intermittent running issues have happened due to these kinds of things:
1) weak battery
2) loose battery connections
3) mice in air box
4) shorts in side stand safety switch
5) cracked spark plug ceramic
6) loose plug connection in wiring between gas tank and radiator
7) shorts in handle bar kill switch
8) kinked/pinched gas lines
9) bad gas
Start with the low hanging fruit and work your way to the more difficult things to diagnose.
Make sure your battery terminal connections are tight.
Make sure gas in tank is fresh and of proper octane.
Look in air box for debris.
_________________
2008 WR250X
Gearing: 13t - 48t
Power Commander 5 / PC-V
Airbox Door Removed - Flapper glued - AIS removed
FmF Q4
Bridgestone Battlax BT-003rs