If they refuse to make peace and they engage you in battle, lay siege to that city. (NIV)
But if it refuses to make peace with you and fights against you, then you shall besiege it. (AMP)
And if it will make no peace with thee, but will make war against thee, then thou shalt besiege it: (KJV)