Justmehere
You are not required to complete any of the ESA activities pain free, however, any pain that limits your ability to complete then should be taken into account, so you need to explain what is causing the pain and how it prevents you completing the two activities that you mention, if it does.
Please be aware, ESA is not a walking test, it is a Mobility test! In addition to your walking it considers your ability to self-propel a manual wheelchair over the same distances, you do not need to be using a wheelchair or even to own one for it to be considered. SO even if you can show your walking is restricted, unless you can also show that you cannot self-propel the wheelchair you will still not score points.
Gordon
Nothing on this board constitutes legal advice - always consult a professional about specific problems