'Had gave' is incorrect because 'gave' is the past tense of the verb 'give', and when you're using 'had' in this context, it needs to be followed by a past participle, which in this case is 'given'. So always remember, 'had given' is the correct form.