cold feet

[cold feet] {n. phr.}, {informal} A loss of courage or nerve; a failure or loss of confidence in yourself.

Ralph was going to ask Mary to dance with him but he got cold feet and didn't.