Answer: we use the past perfect in English for:
Explanation: something that happened several times before a point in the past and continued after that point;
when we are reporting our experience up to a point in the past;
for something that happened in the past and is important at a later time in the past.
It is impossible to say any more without knowing the context.