When a car stops on the road, the decision is usually made in a hurry. Some problems are simple enough to handle at the roadside, and others are a reason to stop, stay safe, and call for help. Reading the situation in advance makes that call easier.
Put the two options side by side
Doing it yourself keeps the work with you and may be quicker when the fix is simple, the tools are on hand, and you are somewhere safe. Calling for help hands the work to someone else, which can be the better path when the road is busy, the light is poor, the problem is unclear, or you lack the tools or the confidence to proceed. Neither path is the default. The better side of the comparison depends on where you are and what you can see.
Situations where the answer leans toward calling
Call for help when you are on a fast road with little room to pull off, when it is dark or raining heavily, when the car is blocking a lane, or when you cannot tell what has failed. Stop if you smell smoke or see fluid spreading under the car. A warning light that stays on, or a temperature gauge climbing toward the hot end, is a reason to switch off the engine once it is safe to do so and let it cool before you open anything.
Situations where a simple fix may be reasonable
A low tire on a quiet, level, safe spot may be a job you can handle with the spare and the tools that came with the car, if you already know how to use them. A jump start can be done with the owner's manual open beside you, the correct cables, and the steps in the order the manual gives. Read the manual section before you need it, not at the roadside.
Write your own limits down
Decide in advance which tasks you will do at the roadside and which you will hand off. Keep the number for any roadside help you have access to, and note where you will be when you call so the help can find you quickly. This turns a hurried choice into a settled one, and it keeps your safety margin ahead of the repair.