Need more info, Juejue, How old is the fuel? Did you hook up a tender to the battery? I think it's a fuelproblem, cause it starts and runs for half a minute, clogged fuelfilter comes to mind, injectors fouled up, try to put some stabilizer in the tank.
First drain the tank, put in fresh gas, try again, if problem is still there you need to use an injector cleaner, and install a new filter. (use injectorcleaner wisely, read the instructions from the vendor, cause that cleaner burns hotter then fuel)
Just solve one problem at the time, bike's that are sitting for a long time, become a bit quirky. Do you see a faultcode?
Many more things, can point to this particular issue, even critters in the airfilter, are somtimes seen.
Let us know, if you solved the issue..