Take out left hand rear light and check wiring connection for rust. Clean and spray with wd40.
Also take bulbs out 1 at a time and check if the metal contact areas are clean.
This will usually sort the problem.
Worth checking other side as well before that does the same.