His king is far from your pawn, and that is when queen and pawn can beat a queen. The rule: put your king on the same rank or file as his king, or the next one, and keep your queen in the center. Then you can block his checks with your queen, and the block often gives check itself or offers a trade he cannot accept.