2018 Grom

My Grom keeps dying it cranks and starts and it shuts off after I changed the fuel filter didn't fix the problem then I got it running after messing with the kickstand but then it started doing the same thing can it be the fuel pump or battery?