This fall Virgin Megastores and Amazon.com will part ways, ending a five-year relationship in which the e-commerce giant hosted a co-branded Web site and providing inventory, fulfillment, site content and customer service for Virgin.