To unlock the Last Story in Shadow the Hedgehog, you must complete all stages in Story Mode. Finishing the required paths will open the final storyline.