が閉まって

is closed

→ が
phrase Uncommon #10,568
is closed が marks what is closed. 閉まって is usually followed by いる or います to describe something being in a closed state.
JA: ドアが閉まっています。
EN: The door is closed.

ドアが閉まっていたので、入ることが出来なかった。

The door was closed, so I couldn't get in.

スーパーが閉まっていたので、買い物ができませんでした。

The supermarket was closed, so I couldn't go shopping.