Use Vin and normal output pins at the same time

What is it that I am doing wrong?

You are not describing what you are doing with enough detail for anyone who is not a mind reader to work out what on earth you are trying to do, or what you have infact done.
Address that and we can help.