A director is someone who has been elected or appointed to arrange company affairs. The can be, but aren’t necessarily, a shareholder of the company. Every company is required to have at least one.
A director is obliged to act honestly and in the best interests of the company (and its shareholders), with reasonable care at all times. You can find out more about the role and responsibilities here.
A shareholder is someone who has an investment with a company by owning shares. In small-medium businesses, a shareholder may also be an employee, a director, or a shareholder-employee, participating in day-to-day management. In large companies, a shareholder is probably not a director.
Shareholders have a right to the profits of the business. These are paid out through dividends, in proportion to the number of shares that they own.
The shareholder(s) appoint the director(s).