The past perfect can be used to refer to imaginary, unreal or improbable situations which are contrary to facts in the past (unreal past).
The past simple is used with:
• Type 2 Conditionals
e.g. Ifhe had the money, he would buy a new car.