がなくなってしまった

… is gone

→ が
phrase Rare #34,477
… is gone Indicates that something has become absent or run out. しまった can add a sense of regret or that the change is unfortunate.
JA: 財布がなくなってしまった。
EN: My wallet is gone.

彼女が来なかったので、楽しみがなくなってしまった。

Since she didn't come, the fun was gone.

私の靴がなくなってしまった。

My shoes are missing.

私の両腕は感覚がなくなってしまった。

I've lost feeling in both of my arms.

不幸にも、冬が終わる前に食糧がなくなってしまった。

Unfortunately, we ran out of food before winter was over.