I caught a cold and have a headache.

Literal

Cold [object-を] caught-and head [subject-が] hurts.

風邪を引いて頭が痛い — te-form chains the cause (caught a cold) with the symptom (head hurts). 頭が痛い is the standard way to say 'I have a headache.'