If you had not ______ me, I would have been in great trouble.
If you had not ______ me, I would have been in great trouble.
Explanation
The sentence is in the past perfect conditional form, so the correct verb form is "helped".
"Had not helped me" means someone assisted in the past, preventing trouble.