When someone or something is trapped, they can't get out or move from where they are.
I was afraid that I could be trapped in the elevator.
私はエレベーターに閉じ込められるのが怖かった。