Neither of my kids (girl & boy) slept well - in fact they are still poor sleepers (she's 16 & he's almost 10!!!!). That said, i'll give the usual advice in case you haven't heard or read it!!
Soft light, soft music (some people dind a clicking clock great too - sounds like a mother's heart beat to a new baby), warm but not too warm , some recommend the baby be firmly wrapped - both mine hated being wrapped & fought till they got loose, - in other words alot of it is individual to the child. Feed the baby & make sure that you really have gotten rid of the wind (i thnk there's a thing you can add to a formula that helps with gas - it's too long ago for me to recall precisely on that).
Routine is usually best - so whatever you do - do the same every day/night (before putting baby down) so that there's a sense of safety & you also need to be patient & keep doing this until it works.
Good luck