Pandya raced to his maiden international century off 86 balls as India were bundled for 487 on Day 2.