Short answer. Most homeowners policies pay for the fix rather than doing it: if the leak came from covered storm damage, the insurer pays for the repair and you choose the roofer who does it. You are expected to make reasonable temporary repairs right away to stop more damage, and those costs are usually reimbursed as part of the claim.
How the fix actually happens
Stop the water. A tarp or temporary patch protects the house. Keep receipts and photos.
Report the claim. Give the storm date and describe what you see.
Adjuster inspection. The insurer's adjuster inspects the roof and interior. Having your roofer there helps.
Estimate. The insurer writes an estimate for the repair or replacement and the interior damage.
You hire the roofer. Payment goes to you, and to your mortgage company if it is named on the check.
Final payment. On a replacement cost policy, withheld depreciation is released after the work is done.
Do you have to use the insurer's contractor?
Generally no. Some insurers offer preferred contractor or managed repair programs. They can be convenient, but read the terms: who guarantees the work, who decides the scope, and what happens if you disagree. You can almost always choose your own roofer.
Temporary vs permanent repairs
Make temporary repairs right away; your policy requires it. Hold off on permanent repairs until the adjuster has seen the damage, unless waiting would cause more harm. If you must repair first, photograph every step and keep the damaged materials.
If the leak is not covered
Leaks from cracked pipe boots, worn flashing or aging shingles are maintenance. Insurance will not fix them, but most are inexpensive compared with the interior damage they cause when ignored.