Painful sex

Sex in certain positions (behind, sideways) has become painful since I’ve had my child a year ago. Almost like it isn’t suppose to be in that way lmao. I can do it if he’s on top and that’s just about it. I feel boring. what can help the pain? Can lube help?