Elon Musk, the CEO of SpaceX and Tesla, Inc., does not have the authority to cancel iPhones. iPhones are a product line of Apple Inc., a separate and independent company.
Apple designs, manufactures, and sells iPhones, and only Apple can make decisions about their production and availability. Elon Musk has no involvement in Apple’s operations or decision-making processes.
So, to clarify, iPhones have not been cancelled by Elon Musk or anyone else. You can still purchase and use iPhones as usual.