Test the battery voltage before starting and during cranking.
It should be over 12.7 before and no lower than 10V when you hit the button.
Most likely the battery, battery connections, or fuse.
More ideas -
https://faq.ninja250.org/wiki/Troubleshooting