You must use a form of "to do" to ask the question and to make it negative.
Did it rain? It didn't rain.
You may use a form of "to do" to make it emphatic, to express surprise or some other emotion. They said we'd have another week of this drought, but look, it DID rain!
To simply make a statement about the past, omit the "did." It rained.
Student or Learner