Hello!
You can get it at Pamplona, as there are no stores at Roncesvalles. As to charging your phone, I guess you'll have to wait till you get to the albergue in Roncesvalles. Perhaps you can convince a bar owner in Pamplona to allow you to charge it while you consume something!
Good luck and buen camino!