Some examples of when to use ‘who’ vs. when to use ‘whom’ would be the following:
Elizabeth is the only student who got a perfect score on the exam.
Who will be filling in for Mr. Bingham today?
Anyone who buys five ice cream cones gets a sixth cone for free!
To whom should I deliver this letter?
Is Nestor the boy with whom you walk home from the bus stop?