Broken your car key inside the ignition switch?
There is no way rather than replacing the whole switch.
While fitting, there are chances for the wires to touch each other which in-turn can make the car engine to start suddenly. If it is Gasoline/Diesel car, it may jump reverse/forward as per the gear.
To avoid this, make sure the car is parked in neutral position along with handbrake ON.