weight gaining

i went on the pill for a bit but it made me very hungry and gain weight, but that never happens to my friends, id it because of the brands? if so what is a really good brand to use?