Hi!
Damage to the brain cells resulting in softening of the brain matter is called encephalomalacia. Encephalomalacia is not an illness. It is basically a softening of the brain matter as a result of an ischemia or infarction, degenerative changes, infection, craniocerebral trauma, or other injury. Depending on the site of brain cell death it can cause mood problems, memory loss, etc. Take care!
The medical advice given should not be considered a substitute for medical care provided by a doctor who can examine you. The advice may not be completely correct for you as the doctor cannot examine you and does not know your complete medical history. Hence this reply to your post should only be considered as a guiding line and you must consult your doctor at the earliest for your medical problem.