A massive five-alarm fire ripped through a multi-family home and church in Lynn, displacing 18 people and leaving the buildings in ruins, the Lynn Fire Department reported.