Literal:
* The roof of the house was leaking after the storm.
* We had to climb onto the roof to fix the antenna.
* The snow piled up on the roof during the blizzard.
Figurative:
* The company provided a roof over our heads while we were between jobs. (Meaning: They gave us financial support)
* The government promised to put a roof over everyone's head. (Meaning: They promised to ensure everyone has access to housing)
* He felt like he had no roof over his head, lost and alone. (Meaning: He felt like he had no stability or security)