WHO = people. WHICH = things. THAT = people or things (defining). WHOSE = possession.
The man who called me was my uncle.
Use WHO for a person as the subject of the relative clause; WHICH is only for things, and WHOSE shows possession rather than performing an action.
The book that you lent me was great.
Use THAT in defining relative clauses (clauses essential to identify which thing you mean); WHO refers to people, not things.
My sister, who lives in Paris, is a chef.
In non-defining relative clauses (extra information about someone already identified, shown by commas), use WHO for a person; THAT cannot be used in non-defining clauses.
The car whose engine failed was new.
Use WHOSE to show that something belongs to or is connected to a person or thing; it expresses possession, and here the engine belongs to the car.
The city which we visited was beautiful.
Use WHICH for a thing in a non-defining relative clause (the comma before WHICH signals this is extra information); WHO and WHAT don't work for things in this context.
This is the house where I was born.
Use WHERE for a place when you want to show location; WHICH and THAT refer to the house as a thing rather than as a location.
Do you remember the day when we met?
Use WHEN to refer to a specific time or moment; WHERE refers to place, and WHICH refers to things—neither expresses time.
The reason why she left is unclear.
Use WHY to refer to a reason or cause; WHICH refers to things, and THAT introduces a defining clause but doesn't express reason.
He gave me a gift, which surprised me.
In a non-defining relative clause (marked by a comma), use WHICH for a thing; THAT cannot start a non-defining clause, and WHAT is not a relative pronoun.
The student who passed got a prize.
Use WHO as the subject of the relative clause when referring to a person; WHICH is for things only, and WHOM is the object form (not needed as the subject here).