We were taught at school that collective nouns can take a singular as well as plural verb depending on the use case of the sentence.

I'm really confused about this concept. I mean how do we know where it is plural or singular. 

>For eg: 
The Jury was/were divided in their opinions. 

*What is correct here, were or was?*

Giving more examples while answering the question will really help a lot.