what causes cervical pain when something hits it

I dont have std. i already been checked