almost sounds like a flat roof sloping that way,leaking in,,,, causing rot and mold/mildew/stink issues. OR other roof issues causing same symptoms. When you see problems 'most' likly coming from 'above'. What is above this area?? This is the Outside of building I assume by the brick pic. Are you on TOP floor?? or others yet above?What do THEY look like? or directly below yours,,,is the ceiling sagging???
Thank you for everyone's input. I will be contacting a building code officer.
I am not sure that they will deem the building 'unsafe' but won't hurt to try. I hope it will encourage my landlord to fix it properly. I have already contacted the department of health about the bats, they cannot enforce/do anything.
I have stated my concerns about the gaps are drafts, pests, and the moldy smell, besides aesthetics and stuff falling into the gaps. I don't really care where the problem is coming from, I just want my landlord to fix it. FYI, however, I am on the top floor, the roof is flat, and the picture of the bricks is INSIDE the apartment under one of my heaters. Below me is a store, and I have not looked at its ceiling. I am sure it's not pretty though.
From the outside of the building, you can see that the bricks have sort of shifted. (I am no expert.) Also, the building is infested, I mean FULL of bats.

There is an attic/crawlspace also, that has bats.
And my apartment does not look like a dump. I think that's part of the problem. At first glance, it appears that nothing is wrong. But then you keep digging---
Attached is a picture of the gaps in my bedroom, which I have since filled with foam, because I couldn't take the smell anymore!