why does it hurt when i have sex:(((

half of the time am i in pain when i have sex and i just dont know whyy