The correct explanation of how temperature leads to the weathering of rocks is:
Rocks expand and contract when they are heated and cooled, which causes them to break.
This process is known as thermal expansion and contraction. When temperatures rise, rocks can expand; when temperatures drop, they contract. Over time, these repeated cycles of expansion and contraction can create stress in the rocks, leading to cracking and eventually breaking apart, which is a form of physical weathering.