Hi.
It's a bit hard to see from the photo, so I'll give you a bit of background so you can figure it out yourself.
Keyboards are usually layout in a grid. Each key has a diode (symbol with a triangle and a line - similar to that ⏄) and one of the switch pins is connected to it and second will be just connected with other keys in the same row (or column, depending on how keyboard is designed).
Check which pin from the switch is connected to the diode (follow track on the board) and solder this one to the correct pin of the diode (diodes are directional, so you have to connect it to correct pin). Second pin on the switch can usually be just connected with same pin of any other key in the column (or row if your keyboard is wired that way, but it's usually column). Follow tracks on the pcb and check if they are connected in columns or rows.
Here you can read how you can build a keyboard by hand. It should give you an idea how all this stuff is wired.
https://beta.docs.qmk.fm/using-qmk/guides/keyboard-building/hand_wireHope it helps a little.