Your relay should have four terminals. One goes to battery,(30) one to headlight,(87)one to switched power,(86)and one to ground,(85)
The switched power one should be connected to your existing headlight harness that has 12vdc when you turn them on. Hope that helps.