In The Sims, pregnancy usually takes a couple of in-game days. You'll need two Sims of different sexes to relax together in a double bed—have them cuddle and then "Try for a Baby." It may take a few attempts before it works.
If you'd like to speed things up, you can enable cheats. Type in boolprop testingCheatsEnabled true (spaces and capitalization count), then Shift+click your Sim. Choose "Spawn," then click the "Tombstone of L&D" (it may also read "Life and Death"). A gray tombstone will appear—click it and scroll through the options until you find "Speed Up My Pregnancy," or, if you're after an alien baby, "Make Me Alien Pregnant."