Might be because you are not having nutritious food you are losing hair. You hair could be graying because you might have dandruff. First you need to change your diet. Eat healthy and nutritious food. Include plenty of fruits, proteins etc.. in your diet. If possible see a dermatologist.