If there is no space in the overhead compartments or the plane is full, then you should check in your bag at the counter. Then they will attach it to another plane. If you don't have time, then look for the overhead compartment. You can also count on online check-in if there are less than thirty minutes left of your flight and you are still on board.