I heard you were sick.

Literal

Sick [copula-だ] [quotative-と] heard [because-ので].

病気だときいたので — ときく means 'to hear that.' ので trails off, implying 'so I came to check on you' or 'so I was worried.' The trailing ので is a natural conversation starter that leaves the consequence unstated.