(Not a Teacher)
The past perfect doesn't seem to be strictly necessary in either of those sentences, but when I read them to myself I find that I throw in a "had" anyway. I guess it just helps ascertain that a particular event in the past happened before another event in the past. especially in the case of the second pair of sentences.
Interested in Language