Families lose homes to 3-alarm fire