Sheldon Cooper never goes to jail in any episode of The Big Bang Theory.
He does face minor legal trouble in the episode "The Mommy Observation" (Season 7, Episode 18) when he contests a parking ticket, but the situation is resolved without incarceration.