Birth defects

Im sorry if I sound ignorant or rude but what are birth defects caused by? Smoking? Drinking? Eating habits? Or are they mostly genetic?