She wouldn't listen when told to go to the hospital.

Literal

She [topic-は] hospital [toward-へ] go [imperative-と] wouldn't-listen.

行けと聞かなかった — 行け is the imperative of 行く, quoted with と. 聞かない in this context means 'won't listen/comply' rather than 'won't hear.'