To get Epona in Ocarina of Time, return to Lon Lon Ranch as Adult Link and pay Ingo, the man in charge of the rides, about 50 or 60 rupees to race him.
If you win, Ingo locks you inside Epona's stable, but the fence is short and easy to clear. Hop over it, and you're free to ride Epona almost anywhere.
To call her back later, use Epona's Song on the Ocarina. You may have already learned this song earlier as Young Link from Malon, so keep that in mind if you need to summon her again.