In short, I got fired.

Literal

Essentially I [topic-は] neck-[became-に-なった] [explanatory-のだ].

首になる (literally 'become a neck') is the idiomatic 'be fired / get the sack.' The etymology: historically, being dismissed was euphemistically likened to having one's head removed. Now just a neutral idiom for job loss.