Dilated but cervix closed?

Ma

I went to my appt and she said I was dilated 3 cm but then I had an ultrasound and the tech said my cervix is closed? Which is correct it’s confusing 🤦🏻‍♀️