Before talking about the spelling of a note (a note has pitch and time properties) I feel it's useful to first guess the tonal center and key that that pitch resides in.
To figure out the tonal center of a note we use the other notes in the piece. We make a few observations about tonal music that will help us: