Hello Swati
this is might be sciatica. as pregnancy advances there will be pressure on the sciatic nerve in the lower back and hip which might cause pain in its course.
You can apply some local applications like a pain balm and take hot water fomentation. If pain is too intense then do con your doctor.