Brendan Rodgers says a spell feeling like a failure helped to ignite his coaching career and get him back on the right track.