The sides parallel to the field (ad and bc) feel no force, because θ = 0 for them.
The sides ab and cd, perpendicular to the field, feel equal and opposite parallel forces of magnitude F = BIL (per turn), forming a couple: the forces are equal, opposite and not along the same line, so they turn the coil about its axis without moving it as a whole.
When the plane of the coil is parallel to the field, the torque = force × perpendicular distance = BIL × w = BI A per turn (A = L w). For N turns:
τ = B I A N
The coil has a magnetic dipole moment m = N I A, a vector perpendicular to the plane of the coil in the direction a right-hand screw advances when turned with the current (the direction from the south face to the north face of the coil). Then τ = B m.
If the normal to the coil (the direction of m) makes an angle θ with the field:
τ = B I A N sin θ
The torque is maximum (θ = 90°, plane parallel to the field) and zero when the plane is perpendicular to the field (θ = 0°, the normal along B). In that position the coil is in equilibrium, with the dipole moment lined up with the field.
What would you like to do next?