If you were a preposition, you would show the relation between another word and a noun or pronoun. You could go with friends into the movie theater. What else could you do if you were a preposition?
Homonym, two words that are pronounced and spelled the same but have different meanings. Homophone, two words that are pronounced the same but have different spellings and different meanings.