What is the physical/chemical reaction that causes one to relax after an orgasm?

Are there are kinds/causes of 'spasmic reactions' that also cause the body to relax? Epilepsy?

Also, do women have different intensity of orgasms than males which doesn't result in the body wanting to relax after the orgasm?