What happens next?

How to earn his or her trust back
Take responsibility for your behavior and admit what you did.
Lying will only further erode trust and create more stress for you. If you are dishonest, you will continue to worry about being caught.
Be honest and forthright to prevent potential future betrayal and delay the process of regaining trust. Being forthcoming will also allow you to explain your behavior in the best possible way.