The direction of the magnetic field B due to a current-carrying wire depends on the direction in which the current is flowing. To determine the direction of the magnetic field, pretend you are grabbing the wire with your thumb pointing in the direction of the current. The direction in which your fingers curl will give the direction of the magnetic field. This is commonly referred to as the right hand rule (RHR) for current-carrying wires.
For the magnetic force B, the direction of the force depends on the direction of the magnetic field, the charge (negative or positive), as well as the direction of motion of the object that is experiencing the force. The direction of force will be perpendicular to BOTH the direction of motion and the direction of the magnetic field. There are other RHRs that are designed to determine the direction of this force. It is difficult to describe without a diagram, so I recommend you look that up somewhere else.