Hi mate. Were they xenon or xenon look lights?
If you ask me, these look like they are rep xenons which would take the D2s and not H7 bulb.
The smaller plug connects to the igniter, that much I know. So the other looks like its for the ballast.
FYI h7 connection in xenon look headlamps:
D2S connections in xenon headlamps:
So I think you have the latter headlight type!
Hope this helps, Regards