Does being uncircumcised or circumcised affect a man's ability to become erect?

Not really. Erection results from blood filling the paired cylinder-like structures inside the penis shaft (corpora cavernosa). This has little or nothing to do with how much skin covers the penis.