Help Circuit Problem

hi sir/ma’am what’s the function of the pins in this relay and where application they can usually use? tnx

Check the data sheet!

If I read the markings correctly this is a Sharp PC817 photocoupler, not a relay. Take a look at the datasheet here: http://www.sharpsma.com/webfm_send/1835