If a door is not locked, you can go through just by walking into it.
Some doors are controlled by switches. If there isn't a switch in reach, your Magic Ball should be able to reach it.