If you are asked if you have any ID, respond in the affirmative as in "I have a driver's license.", but do not show it. (If you're driving, you'll be asked specifically for your license.) This response puts the ball back in the cop's court. You've truthfully answered the question.
Assume the "Interview stance", thumbs on your belt buckle, forearms against your waist. Your hands will be where the cop can see them, and you won't be able to reach your gun.
You should ask at this time "Why am I being detained? Am I free to go?". If the answer to the 2nd question is yes, walk away immediately.
The next few steps are a dance that the cop will try to use to get you to comply with his/her requests. Remember that the cop is well trained in this technique and you're not, so proceed carefully. Also, s/he may be working from information that you don't have or responding to a complaint.
If s/he asks (or demands) to see the aforementioned document, decline and give your name.
If asked for your age, give your date of birth (that info, but not your age, would be on your D/L.) Your SS# isn't on your (VA) D/L either, so you don't need to divulge it.
Repeat "Why am I being detained? Am I free to go?".
This dance may continue with more questions like "Where do you live?", "What are you going?", etc.
Be polite, but firm.