There are many reasons behind this kind of symptoms..
Please update whether you have any associated symptoms like nausea, vomiting, headache, blurring of vision, any ear / eye / neck problem..?
It might be benign positional vertigo or something else..
Next Steps
Please consult physician/ ENT specialist in person for physical check up and needful investigation and action.