I was working on an Arduino Uno and while carrying it to my teacher the wire's pin got stuck into the Vcc of 5 V. Can I set Vcc to other inputs? If so, then how?
The VCC pin is not programmable.
However, both ICSP buses have a pin that connects to the 5V VCC line. See the diagram here: https://i.stack.imgur.com/wKz2l.png These are both male headers while the pin marked 5V is a female header so you will need to use a different connector than what you used previously.
If you choose to go this route, you should use the bottom ICSP header (opposite side of the board from the USB) as it is wired directly to the ATEMEGA328 chip. For this same reason, you should be very careful if you are trying to apply or draw power from any of the 5V pins as they are not protected by a fuse.