She couldn't attend the party because of illness.

Literal

Illness [because-のために] she [topic-は] party [to-に] attending [could-not-できなかった].

パーティーに出席できなかった — のために marks the cause, and 出席できなかった is the potential negative of 出席する ('to attend'). 出席 is a more formal word for attendance than simply 行く.