Some people consider words like family and team to be singular, while others consider them to be plural. Of course the only way family and team can be plural is if you really mean family members and team members.
So, in the first sentence "family" is considered to be singular. (I consider family to be a singular noun; families is a plural noun)
In the second sentence "we" obviously refers to the family members.
I hope that at least partly clears up the confusion.
Student or Learner