Yes, a broken sewer line can damage your foundation, mostly when the leak sits under or right beside a slab. Wastewater soaks the soil each time a fixture drains. On expansive DFW clay, that wet patch swells and lifts part of the slab, or the flow washes soil away and leaves a void the slab settles into.
Uneven moisture is the real problem. A slab rides out movement that is fairly even across the house; a wet spot under one room is different. The Foundation Performance Association guidelines describe heave as clay expanding when water is added and list plumbing leaks among the causes of foundation movement. The same soil movement also cracks the pipe, as in clay soil sewer line damage, so the leak can grow.
The signs look like ordinary foundation trouble: new cracks in drywall, brick or tile, doors that start to stick, a damp or musty spot on the floor, or a sewer smell indoors. A hydrostatic test, which fills the drains under the slab with water and watches the level, shows whether a drain leaks. Fix the leak before or along with any foundation repair, because leveling a slab over wet clay leaves the cause in place. That is why a plumbing test before and after foundation repair is worth doing.
One honest limit: plenty of foundation movement in DFW has nothing to do with plumbing. Seasonal drying and wetting of the clay, and trees pulling water from it, move slabs on their own. A passed test points away from the sewer. A failed one, followed by a camera inspection, shows where the line is broken, and a pipe under the slab that still holds its shape can often be lined without breaking the floor.