The movie follows Joe Gardner (voiced by Jamie Foxx), a middle school music teacher who dreams of becoming a jazz pianist. After finally landing a gig at a prestigious jazz club, Joe's life takes a dramatic turn when he suffers a near-death experience. His soul, now separated from his body, embarks on a journey to find its way back home.