Thank you for your question.
Pain when lifting something or that is worsened by some movements is not something that I would related to lung cancer
The pain does seem most likely to be a muscular pain
more than anything else.
Lung cancers are usually painless in the vast majority of cases and when they do cause pain the diagnosis is very obvious.
I would like that you should have an x ray of the chest done to have a look at your lungs and the ribs to make sure everything is okay.
The bottom line is that this does not sound like lung cancer at all and this is not something to worry about a great deal.
Meanwhile for the pain you can take something like advil
This pain should go away in due course of time as the area heals up.