Anorgasmia issue

Can anyone who has had anorgasmia and solved it help me please? I ejaculate while masturbating but I have never ejaculated while having sex