Its probably stress/nerves/pressure. But there could be a couple other reasons too: medication, masturbating, just not really enjoying the sex, not liking the girl ect...
Once you have identified the cause, then you can find a solutions. Don't stress about not being able to have children, thats a worry for the future not today