Houston, we have a problem

Tom Hanks portrayed astronaut Jack Swigert in the 1995 movie “Apollo 13”, who misquoted his words as “Houston we have a trouble.” What exactly went wrong on the Apollo 13 to force Swigert, all those years ago, to send a distress signal to Earth?