Cloth colision problem

img.jpg

I have a problem with collision cloth. in the first image the mesh is taken from the cloth collision tutorial and works correctly, and when I create my mesh it behaves like cloth but penetrates through objects without collision. how to fix it?

when in a blender I remove plain in a working mess and add my own it still works but when I remove the flag field and add a new one the collision stops working. how to fix it?