In the US, yes you can buy a train. Where you store it would be up to you. Most private trains are either stored on private tracks owned by their owners, or they rent some storage on someone else's tracks. If you want to buy a new train, you would talk to the train manufacturers; or you can buy a used train.