When we told the guy who works at the gun range what happened, he said the gun had probably not been properly cleaned.
That is a possibility, I suppose, so a good takedown and cleaning certainly wouldn't hurt.
There are other things that can cause "jamming"... it's important to figure out if the pistol had a failure to feed, or a failure to eject, or a failure to fire. Knowing that can help you find a solution.
As mentioned by DC, keeping your wrist pretty rigid is important. If you let your wrist flex backward with the recoil, you will be absorbing some of the rearward movement of the slide.... acting as a shock absorber.... which can keep the slide from making it all the way back, which can cause both failure to eject, and failure to feed.
Some new pistols simply require a few hundred rounds to be fired through them... breaking them in, before they lose the occasional hang-up.
Shittim's ( I figured I better not abbreviate HIS name) gunsmith had some good advice, too....