Pill that won't make me gain a bunch of weight?

I was on the pill about 2 years ago I'm not sure what it was that my doctor prescribed but I gained about 25 pounds in 2 months of taking it. I'm looking to get back on a pill but not sure what kind would be best for me.. Any ideas ?