In any case, once you realize you're lost, the best and most important thing to figure out is where you are, in most cases. Moving before you know where you are can put you into more trouble, on a boat or ship going a short distane in the wrong direction might run you aground. There are circumstances in which one might need to move before knowing where you were, but that should involve needing to get away from something else pretty fast.