Cracks in Buildings are caused by:

Thermal expansion 
Moisture expansion 
Chemical expansion 
Subsidence and heave  
Adjacent Excavations 
Mining Foundation movement
Timber rot within the supporting structure
Removing structural support
Drains 
Vegetation growth

Inadequate Design