Use "pull it off" when you're talking about trying something difficult or risky, and succeeding. For example, you can "pull off":
- a dangerous skateboarding trick
- getting a really beautiful woman's phone number
- passing a test that you only started studying for the night before
If you tried something difficult but you didn't succeed, you say:
I wasn't able to pull it off.