Sex and Consenting

I'm a virgin and I'm not sure what my thoughts are about sex. How does a person know when they are ready to have sex? How do they consent to sexual activities?