How can I make my liver function again?

Likely nothing. If you have cirrhosis (end stage) there is likely little you can do. If you have dysfunction from an acute insult then it may recover with removal of that insult (ie alcohol, virus). See your GI for more advice.