it could be the side stand safety switch which is linked to the gearbox, it cuts the engine when first gear is selected if the side stand is left down when pulling away from standstill, you'll have to check that part of the stand that contacts the switch properly, if that's ok then it must be loose/corroded/damaged wiring or a faulty switch unit.
Pitkin, August 2012