Orgasm by masturbating vs. sex?

Why do I have an orgasm with ease while masturbating but have difficulty achieving orgasm while having sex?