An erection that won't go down is called priapism. It needs treatment if it lasts 4 hour or more.
Getting it up shouldn't get you down. Here's everything you need to know about erections. Straight up.
Not being able to get an erection is called Erectile Dysfunction (ED). It is common and in most cases can be treated.