You must carry out a technical analysis of shares and a fundamental analysis of the company. You can also consult the financial statements of the company and view any news for indicators of whether it is a good share to buy.
You can also consult analyst ratings and stock screeners to help you choose.