How can I control my bad habits?

Big question. And it all depends on what exactly the habits are and whether they are in any way dangerous to you or baby. The fact that you are worried about them means that you probably should speak to someone, just to get another person's opinion about whether they are indeed bad and what you might be able to do about them. This could be a parent, an older friend, or a counselor or therapist of some kind.