Weight gain problems

I'm having a lot of trouble losing weight. I gained 35 lbs at the end of 2015..another 15 at the end of 2016. And now I'm at 206..recently lost 10lbs from being sick. I've dieted and been to the gym (not consistently though)

Help? Or any tips? Advice?

Something and anything can help. Thank you!