Consuming more calories than you burn off will allow weight gain. Increasing your daily calorie intake by about 200 calories a day will also help.
For more information about how to gain weight, through both exercise and diet, see the page links, further down this page, listed under Related Questions.