looks like the thigh pain is due to the previous hip replacement
, also u have not mentioned your age and whether a uncemented or cemented hip was performed.
if cemented -loosening
then we find the cause with all blood tests to rule out infection . if no infection think of stem revision
do contact a good orthopedic doctor
wishing u good health