First assess traffic and people’s safety. Leave the traffic stream for a designated stopping place if safely possible; procedures vary by jurisdiction and road type.
If stranded in a live lane or unable to exit safely, use hazard lights, keep seatbelts fastened and contact local emergency services immediately. Follow the dispatcher rather than attempting repairs in moving traffic.