Nothing being able to move is caused by an autorun event which doesn't have a termination condition for its page, since it prevents all other processing until it's done.
Being able to walk through walls is not a feature of an autorun event, so you're going to have to provide more details on exactly what your event does to determine why that's happening because it isn't just "using an autorun event".
from your question I assume that you are a new user of the RPG Makers, because that fact about autoruns has been the same in the last twenty years and more.
So I strongly suggest you go to help-tutorial for MZ to learn the basics of the engine as there are too many quirks that can't be learned without being told. You can also follow the link to the starting point in my signature for additional tutorials as they are also mostly unchanged for ten or fifteen years.