Merely asking and answering questions will not increase your points. I think this used to happen way back in the day, but people would spam answers to in an effort to increase their points, so the feature was removed.
Nowadays, there are a number of ways to earn points that instead reward high-quality and useful questions and answers. Linked here is an up-to-date guide on all the ways you earn points here. Linked here is a guide to all the extra privileges and features you can earn with points.
The primary way you can earn points is through getting votes (worth 10 points), which you can earn for posting useful answers and interesting questions that are helpful to others.