My is an adjective possessive pronoun, "my", which is used before nouns and plays a modifying role, similar to attributes. For example, mine
book
. but I
It is the personal pronoun nominative "I" and the subject of the sentence. For example, I
be
a
student