I couldn't go there because of illness.

Literal

Illness [because-のために] I [topic-は] there [to-へ] couldn't-go.

そこへ行けなかった — 行ける is the potential of 行く. Simple and concise.