Kindly get the wisdom tooth extracted/removed.
If the molar in front of the wisdom tooth has caries then kindly get the caries removed and get the cavity filled. If the caries are involving pulp which can be seen in the X-ray then kindly get root canal treatment
done followed by a cap/crown.
Brush your teeth twice daily using correct brushing technique to maintain your oral hygiene.