I would take him to a vet. Our first dog Cassie sat shaking in her basket one morning. When we took her to the vet, he found she had arthritis in her hip. It was only on looking back that we realised she'd become less keen on jumping into the car, bed etc.
If it is a joint thing, there are lots of natural remedies you can use to help.