The bonus is a percentage of the item's own base stats, so enhancement pays off for any item, from common to legendary.
On a failure, gear NO LONGER breaks or loses levels. Instead, failures build up a percentage that raises your chance on the next attempt. This failure percentage is tied to the item: hover over the item in your inventory to see it.
How to enhance
Open the enhancement window with the R key or the button in the action menu.