"I" is used as a subject while "me" is used as an object.
Accordingly, I is used before a verb whilst "me" is used after a verb or a preposition.
Eg: I would like to live on vegeterian diet.
He doesn't want to involve me.
She always think of me.
Hope this helps