Is sex supposed to feel better than Masturbating?

I don't know why but sex hasn't been very good lately.. I don't know what's the issue. I can never fully relax.

But when I masterbate I can orgasm every time. But I can't orgasm with sex...

Any advice?