Firefighters are working to contain a large fire at a three-story building in Escondido after flames broke out just before 8 p.m. on Thursday.