Use the correct tense form:
I heard that you (be) ill.
I heard that you had been ill.
This sentence is in past perfect tense.