Ride more.
It really is that simple. Start with shorter rides and work your way up gradually to longer rides. Listen to your body. Ride hard when you feel good, but take some days to goof around.
When you can ride 65-75 miles without too many issues, you will be able to manage 100. If you hurry the process you will probably injure yourself.
Az