masturbating/ chronic illness

So I discovered that masturbating distracts me/ helps my pain from my chronic illness. Anyone have this? Any tips to orgasming though? I rarely do and I wish I could more often.