In Spanish, just like in English, subject pronouns tell who is doing the action in a sentence. They are used to replace the subject of a sentence to avoid repetition. In Spanish, it is okay to leave out the subject pronoun and just use the verb if the subject is already been established. This is because the verb forms often make subject pronouns unnecessary. Pronouns shouldn't be used unless there's a reason to.