Haven't had sex

Haven't had sex in months finally did today and it hurt!!! Why is that ?!