What the doctor did for you is an intrauterine insemination
. The sperms reach the tubes and fertilise an egg if present there. This procedure is not 100% successful. One has to repeat it, and after 3 attempts if pregnancy
still does not occur we have to go ahead with other options. Do not be worried. In time you will be able to have a baby.
Hope for the best.