Sucking a cock is not an exact science. Sometimes you have to just go with the flow. Watch how he responds to your actions, if he’s not getting into it, try something else.
Once he’s moaning and involuntarily fucking your face, stick with what you are doing until he fills your mouth with his cum. Just something to think about for next time.