The Master Code is the code that enables the gameshark/Action Replay to recognize your game because it cannot tell what game Pokemon Sapphire is if you just name it. Withoutt turning the mastercode on, you cannot enter cheats.
The Eon Ticket is the other ticket besides the S.S. Ticket, it will take you to Southern Island where you are able to catch Latios.