Mental health problems, such as anxiety and depression, can affect a person's ability to have an orgasm. Past traumas, such as rape or abuse, may also cause orgasmic dysfunction.