"Cook" focuses more narrowly on the act of applying heat and the transformation that the food undergoes because of the heat. Commenters on the question have properly noted that the more specific "bake" should be used instead of "cook" when the heat is applied in an oven (especially when the transformation is more than just increasing the temperature of the food).
"Make" is more general and covers other aspects of food preparation that do not necessarily involve the application of heat.
For example, you "make" a salad but you don't "cook" a salad, because there's no heat (usually). You might cook chicken as part of making a salad.
You "bake" a cake by putting it in the oven, and it is implied by context that you took other steps as well (such as mixing the ingredients, greasing the pan, frosting it, etc.) but if you "make" a cake those other steps are more explicitly stated and more emphasized.
In your examples, I would tend to use "make" more often unless "cooking" was about the only step in food preparation (e.g. "cook a steak" for some preparations). I would also use "cook" or "bake" if the heat component was the focus of my narrative (e.g. "I went to cook the pasta and discovered that my stove didn't work" or "I feel hot and tired because I've been baking bread all day").
One also hears people talking about how "accurately measuring ingredients tends to be more important in baking than in general cooking," because the ratios of one ingredient to another are important for the chemical reactions that take place while baking.
If you use "cook/bake" interchangeably with "make" when referring to food preparation with heat, or if you always use "make" for food preparation, the meaning will be quite clear*, and you don't need to worry about using the wrong one. The StackExchange Q&A site for chefs is even "cooking.stackexchange.com." However, if you want to understand the subtle distinction a bit more, I hope the answer above has helped.
(*) with very few exceptions, such as if you're a known sushi lover talking about "making fish for dinner" with an intended meal partner who strongly prefers that the fish be cooked; this is someone who might seek clarification.