Very hard cervix it's painful

I checked my cervix a and it really hurts like it hurts to touch an the opening is really small what does it mean