First time giving a blow job

So I just had oral for the first time with my boyfriend and it was my first time ever (and his as well) and while I was blowing him my jaw locked out and it hurt really badly... so how do I not have my jaw lock out?