Pills or shots

So I had been on the pill for a couple months but I stopped. now I want to get back on birth control but I’m considering doing the depo shot, any thoughts ?? If your taking the shots do they hurt ? Any bad side affects ?