God stopped the sun. If we were on a rotating ball, gravity would...

Excluding visions of prophecy (which are highly symbolic), if your system for determining if an event described in the Bible is literal or allegorical is based on your modern understanding of what is possible then you are leaning on your own understanding and picking and choosing what sounds right to you not what is actually written.
Everything written in the Bible happened literally, but there is also meta for us to search out. It's always both. The book of Joshua is a historical narrative... If we deny the literal events then the Bible becomes nothing more than just a work of fiction with some proposed moral standards. But it isn't, it is the Holy Perfect Word of God.
