Q.yesterday, today and tomorrow
I have a plant that was doing well with big leaves and flowers and now it is going yellow and not producing flowers. It is located in a pot and in partial shade and sun. It is 5 years old and this is the first problem I have had with it.

Water logged soil and nutrient deficiency came to mind when I read that it is going yellow. Check the soil with your finger - is it damp/soggy or dry to the touch? If it's damp, the plant has been over-watered.
As for nutrient deficiency, this results from potting mixture that is not acid enough.
Either way, I think a re-potting of your plant and a freshening-up of the soil is in order. Use potting mix that contains some peat. When watering, add some iron sulphate to the water. Or, you can encourage healthy foliage by sprinkling some nitrogen rich fertilizer granules around the root zones and watering them in immediately. Also make sure you feed it potassium rich fertilizer to encourage those flowers to bloom.
For more information on growing a yesterday, today and tomorrow plant, please visit the following link:
https://www.gardeningknowhow.com/ornamental/shrubs/yesterday-today-tomorrow/yesterday-today-tomorrow-plant.htm