How is the shaft of a motor fixed in its position?
The are held in place via bearings



One at the drive and and one at the non drive end. 



Now there is such a thing as magnetic bearings and they are superior to bearing runners as there is less friction and no wear &amp; tear but their failure modes and pricing is not quite there.