The underlined verb was given is used in its passive form.
Active form would be - My friend gave me a necklace. Imperative form is a sort of an order, so it would be - Give me the necklace! Subjunctive form presents possibilities, so it would be - Had I been given a necklace, I would have been very happy.