In test matches, 5fers and tons are pretty equivalent. 5fers slightly harder to get as wickets are a finite resource - a batsman facing a poor attack on a flat deck has only himself to blame if he doesn't make a ton, whereas a bowler on a terror track has teammates competing for the wickets, so he could bowl out of his skin and knock the oppo over for 50 but only get 3 because the other bowlers took wickets too. As an example Anderson/Cook: both their country's leading all-time player, similar amount of tests (114 vs 124), 20 5fers for Jimmy and 28 tons for Cook. 3fer is probably the equivalent of a test 50?
t20 wickets are slightly less important as you're less likely to bowl teams out so economy is king. Runs are runs regardless of format, though of course it's harder to get the milestones in shorter games.
In amateur cricket, we all know the importance of tons, but 5fers are a hell of a lot more important/difficult to get than our batsman-dominated world gives them credit for! You can get gifted a few wickets yes, but you'll rarely get a 5fer without bowling bloody well. Limited overs obviously makes it more difficult too - even in ODIs the leading 5fer taker ever (Waqar) only has 13!