Depending on the pin nomenclature of course, usually a 4 pin relay has 2 pins for the coil and 2 pins for a single contact either normally open (NO & C)or normally closed (NC & C). The 5 pin relay will also have 2 pins for the coil and could have both a normally closed (NC) and a normally open (NO) contact with a (C) common pin switched between them. If the pins aren't identified, use an ohmmeter to identify the coil terminals and apply the appropriate voltage to operate the relay. Use the ohmmeter to identify the contact arrangement.

Paul