How to connect 5X7 LED dot matrix which has 7X7 pin both side.
You will need to know the pinout of the display. The physical wiring of any device may be completely different from the logical wiring of the device. This is for reasons of manufacturing simplicicty, amongst others. That's why we call them "schematics".

As the commenters have said, look up the data sheet of the device, and that will reveal the pinout. Be sure that you understand from the diagram which end of the device is which, and be sure to work out whether, in the diagram, you're looking at the device from above or below.