Who is used as a subject in a sentence while whom is used to refer to the object of a verb or preposition.
ex:
Who is your father? ( who as a subject)
With whom do you live? ( Whom as the object of a preposition)
Whom do you admire ? (Whom as the object of a verb)