Just say that power for the low beams is getting to the bulb plug, so the problem is in the plug and not the switch, it is prolly just that the plug needs to be replaced. Also that it momentarily worked when being fiddled with. Prolly a lose contact or some corrosion or something.
On my VX, the one headlight plug was melted, and after looking for another in the junkyard for a while, I came to realize that this is a common problem for the 92-95 civics. I ended up just cleaning up the contacts, bending the "prongs" on the bulb, and the headlight has been working ever since.
On the never-ending quest for better gas mileage...
When you were looking for the vacume leak, you said you plugged the IACV off. Did you plug it off, on the intake, where it mounts, or did you plug the hose coming off of the air filter?
When I was chasing down the wandering idle it ended up being that the valve itself had something broken in the seat arrangement. The valve looked OK, actuated OK, and seemed to me like it was Ok. However, somewhere it was leaking air. I finally plugged off the hose from the intake and then it settled right down.
I seem to remember a member on here that said the source of his vacuum leak was a worn out grommet on the black reservoir box that the PCV system drains back into the backside (firewall side) of the block: