It works for as long as there are enough people out there that feel they're in need of authority figures/ rulers, to direct their lives and to tell them what is "moral" and "just".
This is why it's imperative to the elite class that people don't have easy access to useful, self-empowering, knowledge. They do everything within their power to direct our collective attention away from it, and they're mostly successful.