You put a male and a female in the day care but they should be in the same egg group (if they aren't there will be no egg), and you can also put a ditto in (it doesn't madder what egg group it is with ditto).
The female Pokemon (or if you use Ditto, whatever the non-Ditto one is) will hatch from the egg.