If the missed connection is the airline's fault (a delayed initial flight due to mechanical problems, for example), the airline should rebook you on the next available flight. If the next outbound flight is the following morning, the airline should either book you on another airline or provide accommodations and meals.