If you are asking if that sentence is written with proper
grammar (this is the Grammar, Punctuation and Spelling section),
then it should say "ran away." If that is not what you are asking,
please reword this question to let us know what you are asking.
The answer to 'which is the spice in the cookie that ran away'
is GINGER. It was the gingerbread man that ran away