what can i use for pain

I had a hip replacement and the pain medicine I’m using is not helping much.

It is important to take sufficient pain medication to allow to participate in the rehabilitation exercises.
Do your post-op exercises as instructed by your physical therapist.
Balance rest and activity, especially until some restrictions are lifted by your doctor.
Follow doctor’s orders. If you are told to do something, there is a sound reason for it.