Best way to gain weight is joining the gym , doing HIIT workouts and train all muscle groups. Feed the body through a protein rich diet and get enough rest.
You can try getting a mass gainer if you are unable to reach a calorie count sufficient for weight/muscle gain.