Before you can enter the jail in Epic Mickey, you need to find three keys. The first is near the jail by a bridge with a big wooden wheel; thin out the bridge to reveal a hole, drop into the tunnel, and grab the key, then use the wheel to get back up. The second is up the bridge on the second story of the mainland, where a building has a tower you can thin out. The third is on the roof of the jail, which you also thin out. Once you have all three keys, head to the front of the jail and thin out the door frame to get inside. Hope that helps!