Although owning 51% of shares means that you own 51% of the company, it does not give you the right to use a company’s building, equipment, or other property. This is because the company is considered a legal person and owns all its assets itself.
Owning shares does not mean responsibility for liabilities. If a company goes broke and has to default on loans, the shareholders are not liable in any way. However, all money obtained by converting assets into cash will be used to repay loans and other debts first, so that shareholders cannot receive any money unless and until creditors have been paid (most often the shareholders end up with nothing).