Many foods and medications can cause weight gain. To some extent, where you happen to gain weight depends on your genetic background. It would be easier to list your medications and take a look at your diet and then ask if either of those would be likely to contribute to your weight gain.
10 Super Foods That Help You Lose Weight
How to Balance Weight Gain and Weight Loss Fluctuations