This is a good example of when to start learning the difference between simple past and past perfect, with one action happening before the other:
She realized that she had forgotten something.
[Lots of natives don't use it, but I try to teach it as soon as a student is capable of handling it.]