The middle layer usually has a tiny hole in it to get rid of condensation. The inner pane basically safeguards the load from the passengers during flight. When both the outer and middle panes break, then all the pressurization in the airplane would escape leading to decompression in the passenger cabin.