A hadith is a report: a narration of something the Prophet Muhammad ﷺ said, did, approved or was described as. The Sunnah is the way of life and guidance those reports preserve. The two words overlap a great deal, but a hadith is the record, while the Sunnah is the living practice it points to.
Hadith scholars examine both the chain of narrators and the content. A report is graded authentic (sahih) when every narrator is trustworthy and precise, each heard it from the one before, and it contains no hidden defect or contradiction with stronger reports. Reports that fall short are graded good (hasan), weak (da'if) or, at worst, fabricated.
Sunni Muslims especially rely on six major collections: Sahih al-Bukhari, Sahih Muslim, and the Sunan works of Abu Dawud, at-Tirmidhi, an-Nasa'i and Ibn Majah. Earlier works such as Imam Malik's Muwatta and Imam Ahmad's Musnad are also highly valued, and later scholars such as an-Nawawi compiled popular anthologies like the Forty Hadith and Riyad as-Salihin.
Because the Quran itself tells believers to obey the Messenger, take what he gives them, and follow his example. The Prophet ﷺ was sent to explain the revelation, and much of what the Quran commands, such as how to pray or how much zakat to give, is only known in detail through his Sunnah.
Scholars agree a weak hadith cannot by itself establish a belief or a legal ruling, and that a fabricated report must never be presented as the Prophet's words. Many scholars allowed weak (but not very weak) reports to be mentioned for encouraging good deeds that are already established by stronger evidence, with conditions; others were stricter and avoided them entirely.