somthing jammed or the engine cut out.... did you have the clutch pulled in when it happened?

Does the bike tick over ok when cold?

Check the chain and sprockets as a starter.

You also need to check that there are no cutout switches malfunctioning or that the gearbox/ primary drive isnt worn or broken.