Sex starting to hurt

Shirley
The past 2 times I have had sexual intercourse it hurts what can it be