Your problem is most likely caused by the neutral safety switch. The switch is in circuit with the ignition so the machine can not be started in gear. The switch should be on the side or top of the crankcase with two wires coming out of it.What year is your machine?