We use "think" in the past simple or past perfect tense to indicate a belief that was previously held but that has been shown to be incorrect. For example:
I didn't think she was going. (past simple)
I had thought that she wasn't going. (past perfect)
The exception is in converting from...