んです

Usage

Asking listener to confirm + When giving a reason or expiation In reply to a sentence with んです.

Examples

雨が降っているんですかIs it raining?
バスが来なかったんです...Because the bus didn't come

Good to know

のです in writing.