For example, in an a situation like
誰がやった?
彼がやったんだ
Would the latter sentence be considered past or present tense? Is んだ a combination of の and だ with だ as a copula, or is it a different word altogether that functions more like other sentence ending particles like よ,ぞ,な, etc.