I have a cold.

Literal

Cold [object-を] caught [explanatory-んだ].

ひいてるんだ — casual contraction of ひいているのだ. The explanatory んだ provides context: 'the thing is, I have a cold.'