To some degree you can use these words interchangeable, however there are some nuanced differences. For example, team building specifically has a purpose like improving communication and work dynamics between colleagues. Team bonding, in comparison, is usually about having fun or rewarding employees. Company outings just means leaving the office to do a team building activity or get dinner together or similar.