?
What happened?
Literal
What [subject-が] happened [explanatory-question-の]?
起きる has two main meanings: 'to wake up' and 'to occur/happen.' Context disambiguates. With 何が as subject, it must be 'happen.' The の at the end marks this as a casual inquiring question — softer and more curious than 何が起きた? alone.