You need to re-solder the LED. The pin type can be re-soldered with an electric soldering iron. Clean and tin the solder joints. For commonly used chip-type lamp beads, it is difficult to operate with a soldering iron. You can use a hot air gun to re-solder the defective solder joints, or you can heat the soldering points and re-solder them at the desoldering station.
More reading: What is LED Package