Which?: is use to talk about option between two things.
Ex: A: I have two pens. One is blue. The other is red.
Which do you like?
B: I want the blue one.
What? is use to aask about all of the things.
Ex: What do you like? Resp: i like eating some pizza.
What does she want? Resp: she wants to play volleyball.