Once you have gotten the last Spiritual Stone, you must go back
to Hyrule Castle where a cutscene is triggered. Zelda will throw
the Ocarina of Time into the moat, so when the cutscene is over,
retrieve the ocarina and Zelda will teach you the song of time.