They are both essentially the same hand because they are both three of a kind. The terminology "set" is used when you have a pair as your hole cards and then catch another one of those cards on the board. "Trips" is when there is a pair on the board and you have another of those cards as one of your hole cards. Sets are easier to disguise than trips so many consider them to be a better hand, although they both rank the same.