If you type who whom in the search box in the upper right, you will find several discussions which will undoubtedly answer your question in detail. Short answer: who = subjective case; whom = objective case. It gets tricky in relative clauses.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.