You use the past perfect when....... (here is a video that can help you) You express habits or general truth You indicate action going on at the time of speaking.
You indicate a completed action of the past that happened before another event took place. You indicate an action that will be complete before another event takes place. Which of these three sentences is past perfect: First Second Third.