There are many medical reasons for being underweight. Before trying to put on weight, you need to know that it is safe to do so. The best way is to make sure you are supervised by someone appropriately qualified.
See if you're a healthy weight for your height by checking your BMI.
If you're underweight, your doctor can check for any health conditions that may have caused you to lose weight, such as: