Depends on the train or plane company.
My charter airline doesn't charge for my bike. Most do
Some trains take bikes, some don't, but if they do they charge.
Each have their own regulations regarding how they'll take the bike, so check their websites. Airlines invariably want the tires flattened, bars turned and pedals off. VIA Rail will take your bike as is as long as you sign a waiver.