Hi Gurpreet, Welcome to HealthcareMagic Forum.
How old are you, What is your Height, weight, gender? May be you are having absence seizures, but it has to be confirmed. Kindly get yourself examined by a Neurologist
so that he can examine you and if necessary suggest a CT scan
to rule out the exact cause.
Wish you Good Health, Take Care.