かかっていた

was locked

→ 掛かる
phrase Common #4,250
was locked The meaning depends on context; it can also describe an illness someone had or fog covering an area.
JA: 鍵がかかっていたので、窓から入った。
EN: It was locked, so I came in through the window.

川には橋がかかっていた。

There was a bridge over the river.

壁に帽子とコートがかかっていた。

A hat and coat were hanging on the wall.

玄関には鍵がかかっていたので家には入れなかった。

The front door was locked, so I couldn't get into the house.

ボストンにいる間、トムはホームシックにかかっていた。

Tom was homesick while he was in Boston.

寒くて霧がかかっていた。

It was cold and foggy.

その戸は内側から鍵がかかっていた。

The door was locked from the inside.

部屋には鍵がかかっていた。

The room was locked.