You shouldn’t leave your car unattended if you break down on a public road. In the first instance, you should try to reach safety – whether that’s a service station or the hard shoulder, and call your breakdown provider.
If you’re on the motorway, it’s advised that you stand away from your car, preferably on higher ground.