Do you sitill have a spark immediately after it dies? If so, you probably have a drop of water in the float bowl, or a restricted fuel line.
If you DON'T have a spark, firstly change the plug. After that, it's down to a coil failure, or an intermittanlty shorting kill wire/ignition switch.
Phil Saunders
March 2009