This is a correct use of the past perfect and simple past tense:
Me: Why did you call the person today?
You: I called her this morning [simple past: most recent thing in the past] because I had forgotten [past perfect: 2nd thing - further back in the past]to call last night.
Note: you could use the simple past twice here, because the context makes the meaning clear.
- For Teachers