What happens to the board if you connect the +5V pin directly to a digital input configured as input
Will it destroy the board?


No, it will just read HIGH. That's what HIGH is - 5V.


  Cause after i did this my board doesn't work anymore


Then you probably did something else.