nothing will make a permanent improvement but removing the parasites
trichinella and/or some filarial worms attack both the scalp and gums (in addition to the whole body) so unless you remove them no matter what you do will make a lasting improvements with your problems
regardless of what is the cause you may need to go on some strong long-term anti-parasitic stuff to remove the real cause and then it'll be easy to help restore all the things that bother you; the hardest thing is to remove the "monsters" behind this