No easy answer
A careful history by your physician is the best place to start. Some joint pains are age related. A myriad number of diseases can affect the joints. Xray evaluation and laboratory tests will help narrow down the cause for your joint pain. Inheitance patterns and injuries may also play a part.