Before a ride, be sure the fuel supply valve:

Before setting out on a ride, you should make sure that your motorcycle's fuel supply valve is open. If the fuel valve is closed, the engine may still start with the fuel that is remaining in the lines from a previous ride, but it will stall once the lines are empty.
DMV Writen Test