singular subject like boy, then you need to use the helping verb was.
the boy was reading the book.
when you use a plural subject like boys, then you need to use the helping verb were.
*plural means more than one.
the boys were reading the book.
so, if you're not sure when to use was or were, just look at your subject and ask yourself, "is it singular or plural?" 