Soft ground and poorly compacted fill
Many housing areas in Selangor and the Klang Valley are built on soft clay or on fill that was not compacted properly. Over the years the soil squeezes together under the weight of the house (consolidation), and the building slowly settles with it.
Water washing the soil away
Leaking drains, broken pipes and heavy rain can carry fine soil out from under a slab. This leaves voids and cavities (soil piping). Malaysia's wet weather, with the groundwater rising and falling through the year, makes this worse and can cause compacted fill to collapse.
Differential settlement: when one part sinks more
Differential settlement means one part of a building settles more than another. It is the most common cause of cracked walls in terrace houses. A typical case: the original house sits on piles, but the kitchen, porch or extension added later was built on a shallow footing. The extension sinks with the soft soil while the house stays put, and the joint between them cracks.
Simply patching the cracks or recasting the slab does not stop this. New concrete adds more weight to the same weak soil, so the problem usually comes back. Proper building settlement repair deals with the ground first.