I have had the problem where I have been stuck before while talking to an NPC. But at the moment I am stuck in the middle of dragons den. I got someone to battle me so that I could lose the fight and teleport to the Nurse so that it might unstuck me but now I'm just stuck in the pokemon center.