There was a study done with Alzheimer's patients that, when left alone, the majority of patients always walked north. So, if your lost, just look for an old age home and see which way all of the patients are walking.
As others have said by the sun or stars. Also if you are in the woods where the trees block the sun and stars, you can tell by the moss on the trees and rocks. The moss will thicker on the northern side.