She was locked in the room.

Literal

She [topic-は] room [in-に] was-locked-in.

閉じこめられた is the passive of 閉じこめる ('to lock/shut someone in'). The passive marks this as involuntary — someone locked her in. Distinct from the reflexive 閉じこもる ('to shut oneself in'), which is voluntary.