ISO spectroscopy of gas and dust: from molecular clouds to protoplanetary disks