Answer: 1. Supplicating to Allah to grant you good morals and asking Him to help you adhere to them.
2. Being constantly heedful of Allah Almighty and knowing that he knows, hears, and sees you.
3. Remembering the reward of good morals and that they are a cause for entering Paradise.
4. Remembering the consequences of bad morals and that they are a cause for entering Hellfire.
5. Good morals lead to winning the love of Allah Almighty and His creation, whereas, bad morals bring about the wrath of Allah and His creation.
6. Reading the biography of the Prophet (may Allah's peace and blessings be upon him) and taking him as a role model
7. Taking good people as companions and avoiding the company of evil people