Jail is the place where criminals go when they are awaiting trial and before the major incarceration of prison. You can be quite innocent of a crime and still be in jail. In this way, jail is symbolic of any powerful sense of restraint and limitation that keeps you from enjoying a sense of freedom.
If your dream takes place in jail, examine your life for a situation or limiting belief that is holding you back.... Complete Dictionary of Dreams