You cannot choose the gender of your hatched Pokemon,it's based on IVs (in crystal),every Pokemon has a gender ratio. Here is a list of Pokemon's gender ratios. Also,there are Pokemon that can only be one gender,like the Tyrogue and it's evolution,while other Pokemon are genderless.