The traffic rules of the country you are in apply. As a baseline, German law (§ 15 StVO) says:
- Switch on the hazard lights straight away.
- Secure the scene with a warning triangle placed at a sufficient distance. On fast roads that is about 100 metres.
- Get everyone out of the traffic lane to a safe place.
- In an emergency anywhere in the EU, call 112. The call is free from any phone.
On a German Autobahn, a broken-down car that is being towed must leave at the next exit, and you may not enter the Autobahn while towing (§ 15a StVO). Hazard lights must be on in both vehicles.