not sure about the vacuum line, your throttle body is different than mine.
but that wire, I might be able to help. went out and took this picture for you. I am not sure if this is it, but the only wire I have in that area with a plug like that is show here. connects fwd of the header, and lower than the header.
hope this helps.
__________________
https://i.imgur.com/WQdryKXm.jpg
The Sequel - 1996 4Runner SR5 - Houston, TX
The Original - 2001 4runner SR5 - SOLD
Etsy Page - Custom Pinstriping and Sign Making
@8LinePinstripe: Instagram