Hurts during sex?

Holly • 25. Teacher.
Sometimes when me and my SO have sex it hurts me. I don't know why. Usually it happens when we do it when I lay on my side, but not always? Anyway, once it hurts I hurt the rest of the time we have sex and then I get dry because I'm just not turned on anymore because it hurts. Any help is appreciated!