No one knows. If there were a secret formula, everyone would use it.
Some authors attempt to get a number of people to purchase their book online on the day of release. (They can order any time in advance, but the sales figures count only for the day of release.) That shoots the number of sales up.
Sometimes that strategy works; most times, it doesn't.
I've heard of business people who get their own company to buy 5,000 copies of book to artificially inflate sales. They give the books to employees or include them as part of a package when they do presentations.
So what do writers do to get their books on the best-seller charts?
My answer: Figure out what you can do and do well in promoting your book. Decide what you don't do well and have no passion for and don't do it.
After that, it's up to God (or if you prefer The Universe) or just luck.
No one knows.
But we do know some books hit big. Your next book may be one of them.