All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
Your prayers are valid, and so is your fasting. There is no need to repeat any of that. Most scholars held that Khushoo’ (humble submissiveness) in the prayer is recommended (not obligatory). Therefore, if you performed the prayer properly, observing its due conditions, pillars, and obligations, then it is valid, even if you failed to observe perfect Khushoo’. However, you should be keen to fulfill Khushoo’ in the future, for it is the soul of prayer. You can do that by concentrating and contemplating the verses and Thikr (expressions of remembrance of Allah) you are reciting; pushing away the worldly worries that may cross your mind while praying; performing the prayer in a quiet place away from noise; keeping your heart attentive to the best of your ability such that you repel any passing thought that crosses your mind; and striving in supplicating Allah, The Exalted, to bless you with Khushoo’ and help you maintain it.
We ask Allah, The Exalted, to grant you success.
Allah Knows best.