If cracks open after repairs, it's a sign of structural issues.
A cosmetic solution, like patching cracks with mortar, isn't adequate if cracks keep reappearing. The soil beneath the slab may not have sufficient bearing capacity for the weight of the slab and the structure it supports.
Alternatively, poor drainage around the slab may have washed soil away beneath a section of the slab.
Expansive soil is another possible cause. A skilled foundation repair specialist will be able to evaluate the foundation, test the soil, and determine what repairs are needed to stabilize the foundation.