If your vehicle has mechanical trouble while on a public road and you need to stop, you should:

If your vehicle has mechanical trouble while on a public road and you need to stop driving, pull off the right side of the road, if possible. Turn on your hazard lights to help other drivers see your vehicle while you wait for help.
DMV Writen Test