What is it about ssri that make it hard to cum/orgasm?

I started on sertraline (Zoloft) 3 weeks ago, and while I'm seeing improvement, the worst side effect is the inability to orgasm, get hard, and just no desire to want to have sex/masturbate—just anything to do with sexual activities. Can someone explain to me what it is that causes this, the science of it?