Hi Mary,
In 'Je lui plais', for 'She likes me' , lui could replace both a man or a woman. You would know which from the context.
It is an indirect object pronoun which has to be used because the verb is 'plaire à '.
Have a look at the following lesson for more details-
Replacing people with lui, leur = him, her, them (indirect object pronouns)
Hope this helps !