You need to get a handle on the rigid body before you use it;
void Start ()
{
rb = GetComponent<Rigidbody>();
rb.AddForce(0, 200, 500);
}
As said though, you really need to go through some tutorials for Unity and c#, it's quite a steep learning curve.