Jaganmohini
The story of woman betrayed by a king reappears in his next life as a ghost intent on possessing him. On the advice of a priest,the king marries a pious woman who matches her devotional prowess against the ghost’s seductions and wins
Starring Jayamalini, Narasimha Raju, Koti Surya Prabha, Dhoolipala, Sarathi, Savitri, A. Satyanarayana, Athili Lakshmi, Mukkamala
Watch "Jaganmohini" on Amazon Prime released in 1978. It's a fantasy and drama movie, and has a rating of 6.5 out of 10 from Imdb which is usually fine for this kind of movie.