I would suggest you track your food, your exercise, your sleep, your stress levels, literally every thing you can think of to track. Then graph it all against your weight. Something ought to tell you something.
There are a multitude of factors that go into weight gain/loss. No one, but yourself and your data, are going to be able to figure out your particular situation.