Unknown villain.

100BB effective stacks.
Hero is dealt JJ, QQ in CO and makes standard 4xBB raise.
Villain 3bets from SB to 3.5x the initial raise.
Hero calls.
Flop comes 10xx if we have JJ, and Jxx if we have QQ.
Villain bets out 4/5 of the pot, whats our plan??

I really seem to struggle with this concept, my apologies if its really simple but I cant see how it is. If hero calls lots of turns are bad cards, if hero raises and villain calls - same applies regards to turn cards. If hero raises and villain shoves hero is somewhat committed. If hero folds surely we give up a ton of value. Cheers guys.