Hello,
1. He had a pen.
The interrogative form of this sentence starting with "did" would be
a) Did he have a pen?
b) Did he has a pen?
Have.
In either interrogative or simply as a declaration, once you have a "does" form, you use the bare infinitive.
Does he have a pen? Did he have a pen? He did have a pen. He does have a pen.