was there some event to cause her to lose confidence? something in her school environment?

from your short description here it sounds like this resistance is a symptom of something else.

or is it a self-fulfilling prophecy? ("I am not good at math/I am not going to try/I am not good at math...) Or perfectionism? or all of the above?