In all cases where the jury are discharged without having rendered a verdict, or are prevented from giving a verdict, by reason of accident or other cause, during the progress of the trial, or after the cause is submitted to them, except as provided in Section 630, the action may be again tried immediately, or at a future time, as the court may direct.