Being charged with a crime is a formal accusation from the government, and you will be arrested. You may then post bail as set by a judge, if they allow it, and remain free for the duration of your trial. If you can't post bail, you stay in jail through the trial. If found guilty, you go to prison.