Hi and WELCOME TO THE FORUM.
First place I would check if you are sure the bulb is ok and its in its holder correctly, is the main multi-plug on the rear of the light unit. They suffer from water ingress and as a result some of the pins can corrode. Remove the plug and carefully check the condition of the pins.
This is assuming that the rear and side indicator lights on the same side are flashing.
Alan