Them has 3 different meanings across 2 categories:
Pron · Det
Those ones.
Used as the direct object of a verb.
Those.
The word "them" comes from the Middle English form þem, which was borrowed from Old Norse þeim. Its original meaning referred to a third-person plural object pronoun.