Strictly speaking nobody owns a company, a company has what's called separate legal personality which means that it exists in law outside of any of its shareholders or employees which include its directors.
Shareholders and directors may change but the company continues to exist unless it is liquidated.
If you are listed as a shareholder in the companies founding documents then that means that you have certain rights depending on what type of shares you have and how many you have.
A director is essentially an employee of the company just like everyone else involved with the company and the rights and duties of the said director will usually be set out in their employment contract.
It really isn't possible for a legal document to give you ownership in a company, what is more likely is that something like a share certificate can reflect your shareholding or an employment contract can dictate your directorship.