I caught a cold.

Literal

Cold [object-を] caught.

風邪をひきました — simple polite past. The polite form makes it suitable for telling a teacher, boss, or doctor.