Old age. Your dog is obviously dealing with common issues related to aging. Some breeds, in particular German Shepherds, are susceptible to hip problems and spinal deformities. Also to consider is arthritis. Take your dog to the vet immediately to receive a concrete diagnosis as well as a prescribed course of action.