A noun will function as the subject of a verb when it is the subject of the sentence and comes before the main verb of the sentence.
...
A noun can perform any of the following five functions:
Subject of a verb.
Object of a verb.
Complement of a verb.
Object of a preposition.
Be in apposition to another noun.