The elderly woman was sick in bed.

Literal

Elderly-woman [topic-は] illness [cause-で] lying-down was.

寝ていた = past continuous of 寝る, describing the state of being in bed. 病気で marks illness as the cause. Simple past description.