Can you please explain me in which situations I can use 'was+passive' and in which situation I can use 'had been'?

FOR EXAMPLE:
When I was a professional musician, I had been asked to be part of.....
OR
When I was a professional musician, I was asked to be part.....

Which one of them would be correct? thanks in advance!