'Last month' is for use at the start of the sentence. For example:
'Last month, I ate bread'
'In the last month' is for the end of sentences. For example:
'I ate bread in the last month.'
You can also use 'In the last month' at the start, if you want, but it does not sound as fluent.
I hope I helped