These are two common ways to organise a business, and the exact rules depend on the country. In general, a sole trader is one person running a business in their own name, while a company is a separate legal entity owned by its shareholders.
Typical differences: 1) Setup: a sole trader setup is usually simpler and cheaper. A company usually has more registration and reporting rules. 2) Liability: a sole trader is often personally responsible for the business debts. A limited company usually limits the owners' liability to their investment, with some exceptions. 3) Tax: the two are taxed under different rules.
Terms and rules vary by country, so check the official government guidance for your location or ask a qualified adviser before choosing a structure.
In which country are you thinking of starting a business?