He was confined to his house because of a cold.

Literal

Cold [cause-のため] he [topic-は] house [location-に] shut-in was.

~のため marks formal cause: 'due to a cold.' 閉じ込もる means 'to shut oneself in.' ~ていた shows the ongoing state.