please help to me to make a border with text for my images. I have attached a picture for reference.
Use the rectangle tool (with a stroke and no fill) to create a little box over the image:
Rasterize the layer (Right click on the layer → Rasterize)
Add some text on a new layer
Now use the Rectangular Marquee Tool (M) to select and cut out an area from the bottom of the rectangle (a little larger then your text)
Just for fun, some other variations:
If all of your images are the same size, you can create the whole border and merge it into one layer, then just copy the whole layer and paste it on top of every image.