The correct sentence is:
While we were eating dinner, the phone rang.
The other options are grammatically incorrect. The word "rang" is the correct past tense form of the verb "ring." The word "eat" is a present tense verb and cannot be used in the past tense. The words "ranging" and "ranging" are not verbs and do not make sense in the sentence.