The network in my company has been breached several times. I just wana know about the most popular ways of entering into the servers of a network and the most popular ways of securing the servers.

How Exactly is a known vulnarability is compromised? I mean which softywares tell us if the given server has this known vulnarability and how a hacker actually enters the servers through it?

Thanx in advance.