I didn't have a very good answer for the question he asked me.
ーI wasn't able to answer the question very well.
「質問にうまく答えられなかった」
wasn't able to answer the question very well で「質問にうまく答えられなかった」
ーI didn't have a very good answer for the question he asked me.
「彼が尋ねた質問の良い答えを持っていなかった」
didn't have a very good answer for the question で「質問にうまく答えられなかった」とも言えます。
ご参考まで!