When I was gaining weight I did weight lifting, and drank weight gaining protein shakes in addition to my meals (I drank one serving a day of Dymatize’s Super Mass Gainer, but there plenty of other similar products on the market). For foods, I ate whole wheat, eggs, nuts, peanut butter, fruits, greek yogurt, veggies… basically a healthy but high calorie diet.