probably good idea to have both looked at.
is the brain remote (2009 on) or part of shock (pre 2009).
I had mine go and it cost £ 120 ish - the brain was replaced in its entirety as was too badly fooked to make repair viable.
Specialized have guarantee of 5 years on the shock but you need to take it in for a yearly service.