This is a hand that is also known by the name Trips. If a player has 3 cards in the same rank and 2 cards that don’t match, they have Three of a Kind.
In a showdown with 2 players both having this hand, they compare to find the higher Three of a Kind and if they tie, their kickers are then compared.